apheris-foundry-cli 2.7.2__tar.gz → 2.7.3__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 (75) hide show
  1. apheris_foundry_cli-2.7.3/MANIFEST.in +2 -0
  2. {apheris_foundry_cli-2.7.2/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.7.3}/PKG-INFO +31 -25
  3. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/README.md +30 -24
  4. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/pyproject.toml +1 -1
  5. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3/src/apheris_foundry_cli.egg-info}/PKG-INFO +31 -25
  6. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apheris_foundry_cli.egg-info/SOURCES.txt +2 -30
  7. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/foundry.py +62 -26
  8. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/weights.py +2 -2
  9. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/hub_requests.py +48 -8
  10. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/render.py +7 -2
  11. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/weight_import.py +1 -1
  12. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/handlers.py +25 -2
  13. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/main.py +27 -13
  14. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +12 -6
  15. apheris_foundry_cli-2.7.3/src/apherisfold_cli/version.py +1 -0
  16. apheris_foundry_cli-2.7.2/src/apherisfold_cli/version.py +0 -1
  17. apheris_foundry_cli-2.7.2/tests/test_auth.py +0 -1266
  18. apheris_foundry_cli-2.7.2/tests/test_auth_lifecycle.py +0 -802
  19. apheris_foundry_cli-2.7.2/tests/test_benchmark_examples.py +0 -158
  20. apheris_foundry_cli-2.7.2/tests/test_browser.py +0 -63
  21. apheris_foundry_cli-2.7.2/tests/test_cli.py +0 -3603
  22. apheris_foundry_cli-2.7.2/tests/test_config.py +0 -191
  23. apheris_foundry_cli-2.7.2/tests/test_docs.py +0 -181
  24. apheris_foundry_cli-2.7.2/tests/test_documents.py +0 -169
  25. apheris_foundry_cli-2.7.2/tests/test_dry_run_guard.py +0 -73
  26. apheris_foundry_cli-2.7.2/tests/test_foundry_execution.py +0 -36
  27. apheris_foundry_cli-2.7.2/tests/test_foundry_helpers.py +0 -979
  28. apheris_foundry_cli-2.7.2/tests/test_foundry_warnings.py +0 -134
  29. apheris_foundry_cli-2.7.2/tests/test_handlers.py +0 -161
  30. apheris_foundry_cli-2.7.2/tests/test_hub_requests.py +0 -733
  31. apheris_foundry_cli-2.7.2/tests/test_input_archive.py +0 -286
  32. apheris_foundry_cli-2.7.2/tests/test_io.py +0 -164
  33. apheris_foundry_cli-2.7.2/tests/test_jobs_metadata.py +0 -65
  34. apheris_foundry_cli-2.7.2/tests/test_jobs_update.py +0 -103
  35. apheris_foundry_cli-2.7.2/tests/test_login_callback.py +0 -181
  36. apheris_foundry_cli-2.7.2/tests/test_main.py +0 -221
  37. apheris_foundry_cli-2.7.2/tests/test_model_discovery.py +0 -270
  38. apheris_foundry_cli-2.7.2/tests/test_msa.py +0 -357
  39. apheris_foundry_cli-2.7.2/tests/test_pubchem.py +0 -131
  40. apheris_foundry_cli-2.7.2/tests/test_render.py +0 -47
  41. apheris_foundry_cli-2.7.2/tests/test_result_artifacts.py +0 -324
  42. apheris_foundry_cli-2.7.2/tests/test_skills.py +0 -652
  43. apheris_foundry_cli-2.7.2/tests/test_weight_archive.py +0 -202
  44. apheris_foundry_cli-2.7.2/tests/test_weight_import.py +0 -848
  45. apheris_foundry_cli-2.7.2/tests/test_weights.py +0 -643
  46. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/LICENSE +0 -0
  47. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/setup.cfg +0 -0
  48. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
  49. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
  50. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
  51. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
  52. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/__init__.py +0 -0
  53. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/__init__.py +0 -0
  54. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/compounds.py +0 -0
  55. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/docs.py +0 -0
  56. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/login.py +0 -0
  57. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/settings.py +0 -0
  58. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/commands/skills.py +0 -0
  59. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/__init__.py +0 -0
  60. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/archive_paths.py +0 -0
  61. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/auth.py +0 -0
  62. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/browser.py +0 -0
  63. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/config.py +0 -0
  64. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/context.py +0 -0
  65. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/documents.py +0 -0
  66. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/errors.py +0 -0
  67. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/input_archive.py +0 -0
  68. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/io.py +0 -0
  69. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/limits.py +0 -0
  70. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/login_profiles.py +0 -0
  71. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/msa.py +0 -0
  72. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/pubchem.py +0 -0
  73. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/result_artifacts.py +0 -0
  74. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/transient.py +0 -0
  75. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.7.3}/src/apherisfold_cli/core/weight_archive.py +0 -0
@@ -0,0 +1,2 @@
1
+ # The sdist is published to PyPI: ship the package source only, not the developer test suite.
2
+ prune tests
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apheris-foundry-cli
3
- Version: 2.7.2
3
+ Version: 2.7.3
4
4
  Summary: Command-line interface for Apheris Foundry workflows.
5
5
  Author: Apheris
6
6
  License-Expression: LicenseRef-Apheris-Foundry-Software-License
@@ -121,7 +121,7 @@ workflow guidance directly from your Hub:
121
121
 
122
122
  ```bash
123
123
  apheris-foundry workflows list
124
- apheris-foundry skills install --workflow structure-predict --agent codex
124
+ apheris-foundry skills install --workflow predict --agent codex
125
125
  ```
126
126
 
127
127
  Use `--path ./.agents/skills` instead of `--agent` for another agent or a
@@ -134,8 +134,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
134
134
 
135
135
  ```bash
136
136
  apheris-foundry skills show apheris-foundry-hub
137
- apheris-foundry skills show --workflow structure-predict
138
- apheris-foundry skills show apheris-workflow-structure-predict
137
+ apheris-foundry skills show --workflow predict
138
+ apheris-foundry skills show apheris-workflow-predict
139
139
  # Install every bundled and Hub workflow skill after login:
140
140
  apheris-foundry skills install --all --agent codex
141
141
  ```
@@ -173,12 +173,15 @@ for details about preference scope and scripting.
173
173
 
174
174
  ### Submit a prediction
175
175
 
176
- After login, check that your Hub offers prediction:
176
+ After login, check that your Hub offers prediction. These examples use `predict`,
177
+ the ID on Foundry 1.0.x. Foundry 1.1 renames it to `structure-predict` and still
178
+ accepts `predict` with a deprecation warning. Use `workflows list` and substitute
179
+ the exact ID advertised by your Hub if it differs:
177
180
 
178
181
  ```bash
179
- apheris-foundry workflows get --workflow structure-predict
180
- apheris-foundry workflows docs --workflow structure-predict
181
- apheris-foundry workflows models --workflow structure-predict
182
+ apheris-foundry workflows get --workflow predict
183
+ apheris-foundry workflows docs --workflow predict
184
+ apheris-foundry workflows models --workflow predict
182
185
  ```
183
186
 
184
187
  Save this small example as `request.json`:
@@ -198,13 +201,13 @@ Save this small example as `request.json`:
198
201
  Submit it using your Hub's default model settings:
199
202
 
200
203
  ```bash
201
- apheris-foundry workflows run --workflow structure-predict --input request.json
204
+ apheris-foundry workflows run --workflow predict --input request.json
202
205
  ```
203
206
 
204
207
  Optionally add a name and one or more tags when submitting:
205
208
 
206
209
  ```bash
207
- apheris-foundry workflows run --workflow structure-predict --input request.json \
210
+ apheris-foundry workflows run --workflow predict --input request.json \
208
211
  --name "Kinase pilot" --tag kinase --tag pilot
209
212
  ```
210
213
 
@@ -215,9 +218,8 @@ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
215
218
  fields in detail. Missing names and tags appear as `—`.
216
219
 
217
220
  Repeat `--input` to upload several files for one run, as AQCell inference takes
218
- compounds, cell lines and a config together (the
219
- [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
220
- matches this layout):
221
+ compounds, cell lines and a config together (the six-pair example that
222
+ `apheris-foundry workflows docs --workflow aqcell` describes matches this layout):
221
223
 
222
224
  ```bash
223
225
  apheris-foundry workflows run --workflow aqcell --input ligands.csv --input cell_lines.csv --input config.json
@@ -262,9 +264,9 @@ Override model parameters inline or from a JSON/YAML file. Select models and wei
262
264
  advertised by `workflows models`:
263
265
 
264
266
  ```bash
265
- apheris-foundry workflows run --workflow structure-predict --input request.json \
267
+ apheris-foundry workflows run --workflow predict --input request.json \
266
268
  --model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
267
- apheris-foundry workflows run --workflow structure-predict --input request.json \
269
+ apheris-foundry workflows run --workflow predict --input request.json \
268
270
  --model <model-id> --weight <weight-version> \
269
271
  --model-params @./model-params.yaml
270
272
  ```
@@ -289,10 +291,10 @@ needed for the workflow's one-sample, seed-42 defaults.
289
291
 
290
292
  ```bash
291
293
  # 1. Discover: one row per model and weight (* = default); --weight shows one in detail
292
- apheris-foundry workflows models --workflow structure-predict
293
- apheris-foundry workflows models --workflow structure-predict --weight of3p2
294
+ apheris-foundry workflows models --workflow predict
295
+ apheris-foundry workflows models --workflow predict --weight of3p2
294
296
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
295
- apheris-foundry workflows run --workflow structure-predict --input request.json --model openfold3 --weight of3p2
297
+ apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
296
298
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
297
299
  apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
298
300
  # 4. It now appears as a weight in step 1; manage it by ID
@@ -369,6 +371,10 @@ apheris-foundry jobs get --help
369
371
 
370
372
  `--name` optionally names the run. Omitted or blank names submit an unnamed run.
371
373
 
374
+ With `--json`, stdout contains only one JSON document; prompts, notices and
375
+ errors go to stderr. `workflows run --wait --json` prints nothing until the job
376
+ finishes. See [JSON output for scripts and agents](docs/usage.md#json-output-for-scripts-and-agents).
377
+
372
378
  ### Choosing how to pass settings
373
379
 
374
380
  Workflow instructions describe the configuration and its meaning; the CLI maps
@@ -649,9 +655,7 @@ cleanup requires an explicit `--delete-files` request.
649
655
 
650
656
  Hub copies enabled checkpoints into independent storage, so deleting the
651
657
  producing job (`jobs delete`) retains its enabled weights, including shared
652
- ones. These storage semantics and file removal require a Hub containing
653
- [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
654
- file-removal request; upgrade Hub before using this option.
658
+ ones.
655
659
  `--dry-run true` previews `update` and `delete` after reading the current
656
660
  record. The delete preview includes `deleteFiles`; it does not check active
657
661
  jobs or remove files.
@@ -701,7 +705,8 @@ in the current directory, matching the FCP CLI naming convention, and
701
705
  `./job_<job-id>_results/artifacts/`. The CLI prints the absolute path and
702
706
  refuses to write into a non-empty directory unless `--overwrite=true` is set.
703
707
  CLI versions up to 2.7.0 used the hidden `./.apherisfold/runs/foundry-results/`
704
- directory; those files stay there.
708
+ directory; those files stay there. Scripts that need a fixed location should pass
709
+ `--output <dir>` explicitly rather than depend on the default.
705
710
 
706
711
  `jobs download` preserves the workflow's `result.json`; the CLI's download
707
712
  manifest is `cli-result.json`. A conflicting artifact with that name is rejected
@@ -713,7 +718,7 @@ Find jobs by name, ID, or tag:
713
718
 
714
719
  ```sh
715
720
  apheris-foundry jobs list --search 'screen_1'
716
- apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
721
+ apheris-foundry jobs list --workflow predict --status succeeded --limit 10
717
722
  ```
718
723
 
719
724
  Search is literal (no wildcards). Workflow and status filters can be repeated.
@@ -731,8 +736,9 @@ and model details use this explanation:
731
736
 
732
737
  > An early-access workflow, released so you can try it before it has been fully tested. You may run into issues. Your feedback helps us improve it.
733
738
 
734
- Running a preview prints the same notice to stderr, including with
735
- `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
739
+ Running a preview prints the same explanation to stderr, so stdout remains
740
+ machine-readable: in a yellow **Research Preview** panel, or as one plain line
741
+ with `--json`. The Hub's `researchPreview` boolean
736
742
  is preserved in workflow/model JSON output; missing or false shows no label.
737
743
  CLI-only access and preview status are independent.
738
744
  Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
@@ -95,7 +95,7 @@ workflow guidance directly from your Hub:
95
95
 
96
96
  ```bash
97
97
  apheris-foundry workflows list
98
- apheris-foundry skills install --workflow structure-predict --agent codex
98
+ apheris-foundry skills install --workflow predict --agent codex
99
99
  ```
100
100
 
101
101
  Use `--path ./.agents/skills` instead of `--agent` for another agent or a
@@ -108,8 +108,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
108
108
 
109
109
  ```bash
110
110
  apheris-foundry skills show apheris-foundry-hub
111
- apheris-foundry skills show --workflow structure-predict
112
- apheris-foundry skills show apheris-workflow-structure-predict
111
+ apheris-foundry skills show --workflow predict
112
+ apheris-foundry skills show apheris-workflow-predict
113
113
  # Install every bundled and Hub workflow skill after login:
114
114
  apheris-foundry skills install --all --agent codex
115
115
  ```
@@ -147,12 +147,15 @@ for details about preference scope and scripting.
147
147
 
148
148
  ### Submit a prediction
149
149
 
150
- After login, check that your Hub offers prediction:
150
+ After login, check that your Hub offers prediction. These examples use `predict`,
151
+ the ID on Foundry 1.0.x. Foundry 1.1 renames it to `structure-predict` and still
152
+ accepts `predict` with a deprecation warning. Use `workflows list` and substitute
153
+ the exact ID advertised by your Hub if it differs:
151
154
 
152
155
  ```bash
153
- apheris-foundry workflows get --workflow structure-predict
154
- apheris-foundry workflows docs --workflow structure-predict
155
- apheris-foundry workflows models --workflow structure-predict
156
+ apheris-foundry workflows get --workflow predict
157
+ apheris-foundry workflows docs --workflow predict
158
+ apheris-foundry workflows models --workflow predict
156
159
  ```
157
160
 
158
161
  Save this small example as `request.json`:
@@ -172,13 +175,13 @@ Save this small example as `request.json`:
172
175
  Submit it using your Hub's default model settings:
173
176
 
174
177
  ```bash
175
- apheris-foundry workflows run --workflow structure-predict --input request.json
178
+ apheris-foundry workflows run --workflow predict --input request.json
176
179
  ```
177
180
 
178
181
  Optionally add a name and one or more tags when submitting:
179
182
 
180
183
  ```bash
181
- apheris-foundry workflows run --workflow structure-predict --input request.json \
184
+ apheris-foundry workflows run --workflow predict --input request.json \
182
185
  --name "Kinase pilot" --tag kinase --tag pilot
183
186
  ```
184
187
 
@@ -189,9 +192,8 @@ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
189
192
  fields in detail. Missing names and tags appear as `—`.
190
193
 
191
194
  Repeat `--input` to upload several files for one run, as AQCell inference takes
192
- compounds, cell lines and a config together (the
193
- [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
194
- matches this layout):
195
+ compounds, cell lines and a config together (the six-pair example that
196
+ `apheris-foundry workflows docs --workflow aqcell` describes matches this layout):
195
197
 
196
198
  ```bash
197
199
  apheris-foundry workflows run --workflow aqcell --input ligands.csv --input cell_lines.csv --input config.json
@@ -236,9 +238,9 @@ Override model parameters inline or from a JSON/YAML file. Select models and wei
236
238
  advertised by `workflows models`:
237
239
 
238
240
  ```bash
239
- apheris-foundry workflows run --workflow structure-predict --input request.json \
241
+ apheris-foundry workflows run --workflow predict --input request.json \
240
242
  --model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
241
- apheris-foundry workflows run --workflow structure-predict --input request.json \
243
+ apheris-foundry workflows run --workflow predict --input request.json \
242
244
  --model <model-id> --weight <weight-version> \
243
245
  --model-params @./model-params.yaml
244
246
  ```
@@ -263,10 +265,10 @@ needed for the workflow's one-sample, seed-42 defaults.
263
265
 
264
266
  ```bash
265
267
  # 1. Discover: one row per model and weight (* = default); --weight shows one in detail
266
- apheris-foundry workflows models --workflow structure-predict
267
- apheris-foundry workflows models --workflow structure-predict --weight of3p2
268
+ apheris-foundry workflows models --workflow predict
269
+ apheris-foundry workflows models --workflow predict --weight of3p2
268
270
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
269
- apheris-foundry workflows run --workflow structure-predict --input request.json --model openfold3 --weight of3p2
271
+ apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
270
272
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
271
273
  apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
272
274
  # 4. It now appears as a weight in step 1; manage it by ID
@@ -343,6 +345,10 @@ apheris-foundry jobs get --help
343
345
 
344
346
  `--name` optionally names the run. Omitted or blank names submit an unnamed run.
345
347
 
348
+ With `--json`, stdout contains only one JSON document; prompts, notices and
349
+ errors go to stderr. `workflows run --wait --json` prints nothing until the job
350
+ finishes. See [JSON output for scripts and agents](docs/usage.md#json-output-for-scripts-and-agents).
351
+
346
352
  ### Choosing how to pass settings
347
353
 
348
354
  Workflow instructions describe the configuration and its meaning; the CLI maps
@@ -623,9 +629,7 @@ cleanup requires an explicit `--delete-files` request.
623
629
 
624
630
  Hub copies enabled checkpoints into independent storage, so deleting the
625
631
  producing job (`jobs delete`) retains its enabled weights, including shared
626
- ones. These storage semantics and file removal require a Hub containing
627
- [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
628
- file-removal request; upgrade Hub before using this option.
632
+ ones.
629
633
  `--dry-run true` previews `update` and `delete` after reading the current
630
634
  record. The delete preview includes `deleteFiles`; it does not check active
631
635
  jobs or remove files.
@@ -675,7 +679,8 @@ in the current directory, matching the FCP CLI naming convention, and
675
679
  `./job_<job-id>_results/artifacts/`. The CLI prints the absolute path and
676
680
  refuses to write into a non-empty directory unless `--overwrite=true` is set.
677
681
  CLI versions up to 2.7.0 used the hidden `./.apherisfold/runs/foundry-results/`
678
- directory; those files stay there.
682
+ directory; those files stay there. Scripts that need a fixed location should pass
683
+ `--output <dir>` explicitly rather than depend on the default.
679
684
 
680
685
  `jobs download` preserves the workflow's `result.json`; the CLI's download
681
686
  manifest is `cli-result.json`. A conflicting artifact with that name is rejected
@@ -687,7 +692,7 @@ Find jobs by name, ID, or tag:
687
692
 
688
693
  ```sh
689
694
  apheris-foundry jobs list --search 'screen_1'
690
- apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
695
+ apheris-foundry jobs list --workflow predict --status succeeded --limit 10
691
696
  ```
692
697
 
693
698
  Search is literal (no wildcards). Workflow and status filters can be repeated.
@@ -705,8 +710,9 @@ and model details use this explanation:
705
710
 
706
711
  > An early-access workflow, released so you can try it before it has been fully tested. You may run into issues. Your feedback helps us improve it.
707
712
 
708
- Running a preview prints the same notice to stderr, including with
709
- `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
713
+ Running a preview prints the same explanation to stderr, so stdout remains
714
+ machine-readable: in a yellow **Research Preview** panel, or as one plain line
715
+ with `--json`. The Hub's `researchPreview` boolean
710
716
  is preserved in workflow/model JSON output; missing or false shows no label.
711
717
  CLI-only access and preview status are independent.
712
718
  Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "apheris-foundry-cli"
7
- version = "2.7.2"
7
+ version = "2.7.3"
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: 2.7.2
3
+ Version: 2.7.3
4
4
  Summary: Command-line interface for Apheris Foundry workflows.
5
5
  Author: Apheris
6
6
  License-Expression: LicenseRef-Apheris-Foundry-Software-License
@@ -121,7 +121,7 @@ workflow guidance directly from your Hub:
121
121
 
122
122
  ```bash
123
123
  apheris-foundry workflows list
124
- apheris-foundry skills install --workflow structure-predict --agent codex
124
+ apheris-foundry skills install --workflow predict --agent codex
125
125
  ```
126
126
 
127
127
  Use `--path ./.agents/skills` instead of `--agent` for another agent or a
@@ -134,8 +134,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
134
134
 
135
135
  ```bash
136
136
  apheris-foundry skills show apheris-foundry-hub
137
- apheris-foundry skills show --workflow structure-predict
138
- apheris-foundry skills show apheris-workflow-structure-predict
137
+ apheris-foundry skills show --workflow predict
138
+ apheris-foundry skills show apheris-workflow-predict
139
139
  # Install every bundled and Hub workflow skill after login:
140
140
  apheris-foundry skills install --all --agent codex
141
141
  ```
@@ -173,12 +173,15 @@ for details about preference scope and scripting.
173
173
 
174
174
  ### Submit a prediction
175
175
 
176
- After login, check that your Hub offers prediction:
176
+ After login, check that your Hub offers prediction. These examples use `predict`,
177
+ the ID on Foundry 1.0.x. Foundry 1.1 renames it to `structure-predict` and still
178
+ accepts `predict` with a deprecation warning. Use `workflows list` and substitute
179
+ the exact ID advertised by your Hub if it differs:
177
180
 
178
181
  ```bash
179
- apheris-foundry workflows get --workflow structure-predict
180
- apheris-foundry workflows docs --workflow structure-predict
181
- apheris-foundry workflows models --workflow structure-predict
182
+ apheris-foundry workflows get --workflow predict
183
+ apheris-foundry workflows docs --workflow predict
184
+ apheris-foundry workflows models --workflow predict
182
185
  ```
183
186
 
184
187
  Save this small example as `request.json`:
@@ -198,13 +201,13 @@ Save this small example as `request.json`:
198
201
  Submit it using your Hub's default model settings:
199
202
 
200
203
  ```bash
201
- apheris-foundry workflows run --workflow structure-predict --input request.json
204
+ apheris-foundry workflows run --workflow predict --input request.json
202
205
  ```
203
206
 
204
207
  Optionally add a name and one or more tags when submitting:
205
208
 
206
209
  ```bash
207
- apheris-foundry workflows run --workflow structure-predict --input request.json \
210
+ apheris-foundry workflows run --workflow predict --input request.json \
208
211
  --name "Kinase pilot" --tag kinase --tag pilot
209
212
  ```
210
213
 
@@ -215,9 +218,8 @@ tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
215
218
  fields in detail. Missing names and tags appear as `—`.
216
219
 
217
220
  Repeat `--input` to upload several files for one run, as AQCell inference takes
218
- compounds, cell lines and a config together (the
219
- [six-pair example](https://github.com/apheris/foundry-toolkit/tree/main/workflows/aqcell/examples)
220
- matches this layout):
221
+ compounds, cell lines and a config together (the six-pair example that
222
+ `apheris-foundry workflows docs --workflow aqcell` describes matches this layout):
221
223
 
222
224
  ```bash
223
225
  apheris-foundry workflows run --workflow aqcell --input ligands.csv --input cell_lines.csv --input config.json
@@ -262,9 +264,9 @@ Override model parameters inline or from a JSON/YAML file. Select models and wei
262
264
  advertised by `workflows models`:
263
265
 
264
266
  ```bash
265
- apheris-foundry workflows run --workflow structure-predict --input request.json \
267
+ apheris-foundry workflows run --workflow predict --input request.json \
266
268
  --model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
267
- apheris-foundry workflows run --workflow structure-predict --input request.json \
269
+ apheris-foundry workflows run --workflow predict --input request.json \
268
270
  --model <model-id> --weight <weight-version> \
269
271
  --model-params @./model-params.yaml
270
272
  ```
@@ -289,10 +291,10 @@ needed for the workflow's one-sample, seed-42 defaults.
289
291
 
290
292
  ```bash
291
293
  # 1. Discover: one row per model and weight (* = default); --weight shows one in detail
292
- apheris-foundry workflows models --workflow structure-predict
293
- apheris-foundry workflows models --workflow structure-predict --weight of3p2
294
+ apheris-foundry workflows models --workflow predict
295
+ apheris-foundry workflows models --workflow predict --weight of3p2
294
296
  # 2. Use a listed model and weight (rejected if not listed; never substituted)
295
- apheris-foundry workflows run --workflow structure-predict --input request.json --model openfold3 --weight of3p2
297
+ apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
296
298
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
297
299
  apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
298
300
  # 4. It now appears as a weight in step 1; manage it by ID
@@ -369,6 +371,10 @@ apheris-foundry jobs get --help
369
371
 
370
372
  `--name` optionally names the run. Omitted or blank names submit an unnamed run.
371
373
 
374
+ With `--json`, stdout contains only one JSON document; prompts, notices and
375
+ errors go to stderr. `workflows run --wait --json` prints nothing until the job
376
+ finishes. See [JSON output for scripts and agents](docs/usage.md#json-output-for-scripts-and-agents).
377
+
372
378
  ### Choosing how to pass settings
373
379
 
374
380
  Workflow instructions describe the configuration and its meaning; the CLI maps
@@ -649,9 +655,7 @@ cleanup requires an explicit `--delete-files` request.
649
655
 
650
656
  Hub copies enabled checkpoints into independent storage, so deleting the
651
657
  producing job (`jobs delete`) retains its enabled weights, including shared
652
- ones. These storage semantics and file removal require a Hub containing
653
- [hub#3142](https://github.com/apheris/hub/pull/3142). Older Hubs may ignore the
654
- file-removal request; upgrade Hub before using this option.
658
+ ones.
655
659
  `--dry-run true` previews `update` and `delete` after reading the current
656
660
  record. The delete preview includes `deleteFiles`; it does not check active
657
661
  jobs or remove files.
@@ -701,7 +705,8 @@ in the current directory, matching the FCP CLI naming convention, and
701
705
  `./job_<job-id>_results/artifacts/`. The CLI prints the absolute path and
702
706
  refuses to write into a non-empty directory unless `--overwrite=true` is set.
703
707
  CLI versions up to 2.7.0 used the hidden `./.apherisfold/runs/foundry-results/`
704
- directory; those files stay there.
708
+ directory; those files stay there. Scripts that need a fixed location should pass
709
+ `--output <dir>` explicitly rather than depend on the default.
705
710
 
706
711
  `jobs download` preserves the workflow's `result.json`; the CLI's download
707
712
  manifest is `cli-result.json`. A conflicting artifact with that name is rejected
@@ -713,7 +718,7 @@ Find jobs by name, ID, or tag:
713
718
 
714
719
  ```sh
715
720
  apheris-foundry jobs list --search 'screen_1'
716
- apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
721
+ apheris-foundry jobs list --workflow predict --status succeeded --limit 10
717
722
  ```
718
723
 
719
724
  Search is literal (no wildcards). Workflow and status filters can be repeated.
@@ -731,8 +736,9 @@ and model details use this explanation:
731
736
 
732
737
  > An early-access workflow, released so you can try it before it has been fully tested. You may run into issues. Your feedback helps us improve it.
733
738
 
734
- Running a preview prints the same notice to stderr, including with
735
- `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
739
+ Running a preview prints the same explanation to stderr, so stdout remains
740
+ machine-readable: in a yellow **Research Preview** panel, or as one plain line
741
+ with `--json`. The Hub's `researchPreview` boolean
736
742
  is preserved in workflow/model JSON output; missing or false shows no label.
737
743
  CLI-only access and preview status are independent.
738
744
  Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do
@@ -1,4 +1,5 @@
1
1
  LICENSE
2
+ MANIFEST.in
2
3
  README.md
3
4
  pyproject.toml
4
5
  src/apheris_foundry_cli.egg-info/PKG-INFO
@@ -39,33 +40,4 @@ src/apherisfold_cli/core/result_artifacts.py
39
40
  src/apherisfold_cli/core/transient.py
40
41
  src/apherisfold_cli/core/weight_archive.py
41
42
  src/apherisfold_cli/core/weight_import.py
42
- src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md
43
- tests/test_auth.py
44
- tests/test_auth_lifecycle.py
45
- tests/test_benchmark_examples.py
46
- tests/test_browser.py
47
- tests/test_cli.py
48
- tests/test_config.py
49
- tests/test_docs.py
50
- tests/test_documents.py
51
- tests/test_dry_run_guard.py
52
- tests/test_foundry_execution.py
53
- tests/test_foundry_helpers.py
54
- tests/test_foundry_warnings.py
55
- tests/test_handlers.py
56
- tests/test_hub_requests.py
57
- tests/test_input_archive.py
58
- tests/test_io.py
59
- tests/test_jobs_metadata.py
60
- tests/test_jobs_update.py
61
- tests/test_login_callback.py
62
- tests/test_main.py
63
- tests/test_model_discovery.py
64
- tests/test_msa.py
65
- tests/test_pubchem.py
66
- tests/test_render.py
67
- tests/test_result_artifacts.py
68
- tests/test_skills.py
69
- tests/test_weight_archive.py
70
- tests/test_weight_import.py
71
- tests/test_weights.py
43
+ src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md
@@ -43,12 +43,14 @@ from apherisfold_cli.core.render import command_examples
43
43
  from apherisfold_cli.core.result_artifacts import extract_results_archive, validate_result_view
44
44
  from apherisfold_cli.handlers import get_ctx, run_simple_listing
45
45
 
46
- RESEARCH_PREVIEW_NOTICE = (
47
- "Research preview: An early-access workflow, released so you can try it before it has been fully tested. "
46
+ _RESEARCH_PREVIEW_DETAIL = (
47
+ "An early-access workflow, released so you can try it before it has been fully tested. "
48
48
  "You may run into issues. Your feedback helps us improve it."
49
49
  )
50
+ RESEARCH_PREVIEW_NOTICE = f"Research preview: {_RESEARCH_PREVIEW_DETAIL}"
50
51
 
51
52
  _CONSOLE = Console()
53
+ _STDERR_CONSOLE = Console(stderr=True)
52
54
  _TERMINAL_STATUSES = {"succeeded", "failed", "cancelled"}
53
55
  _POLL_INTERVAL = 3.0
54
56
  _LOG_KINDS = {"steps", "engine", "run", "debug", "cmd"}
@@ -356,9 +358,12 @@ def _html_escape(value: str) -> str:
356
358
  return value.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
357
359
 
358
360
 
359
- def _run_detail_renderable(
360
- run: dict[str, Any], *, result_preview: dict[str, Any] | None = None, request_data: dict[str, Any] | None = None
361
- ) -> Group:
361
+ def _run_status_style(status: str) -> str:
362
+ lowered = status.lower()
363
+ return "green" if lowered == "succeeded" else ("red" if lowered in {"failed", "cancelled"} else "yellow")
364
+
365
+
366
+ def _run_detail_table(run: dict[str, Any]) -> Table:
362
367
  detail = Table(box=box.SIMPLE_HEAD, show_header=True, padding=(0, 1), expand=False)
363
368
  detail.add_column("FIELD", style="bold", no_wrap=True)
364
369
  detail.add_column("VALUE", overflow="fold")
@@ -378,14 +383,19 @@ def _run_detail_renderable(
378
383
  label = ts.replace("At", " AT").upper()
379
384
  detail.add_row(label, str(run[ts])[:19])
380
385
  status = str(run.get("status", ""))
381
- status_upper = status.upper()
382
- color = "green" if status_upper == "SUCCEEDED" else ("red" if status_upper in {"FAILED", "CANCELLED"} else "yellow")
383
- detail.add_row("STATUS", Text(status, style=color))
386
+ detail.add_row("STATUS", Text(status, style=_run_status_style(status)))
384
387
  if run.get("exitCode"):
385
388
  detail.add_row("EXIT CODE", str(run["exitCode"]))
386
389
  error = str(run.get("error", "")).strip()
387
390
  if error:
388
391
  detail.add_row("ERROR", Text(error, style="red"))
392
+ return detail
393
+
394
+
395
+ def _run_detail_renderable(
396
+ run: dict[str, Any], *, result_preview: dict[str, Any] | None = None, request_data: dict[str, Any] | None = None
397
+ ) -> Group:
398
+ detail = _run_detail_table(run)
389
399
  renderables: list[Any] = [Panel(detail, title=f"Foundry Job {run.get('id', '')}", border_style="dim")]
390
400
  warnings_panel = _foundry_warnings_panel(run)
391
401
  if warnings_panel is not None:
@@ -679,7 +689,7 @@ def foundry_run(
679
689
  return
680
690
  metadata = get_foundry_workflow(workflow)
681
691
  if metadata.get("researchPreview") is True:
682
- typer.echo(RESEARCH_PREVIEW_NOTICE, err=True)
692
+ _print_research_preview_notice(json_output=json_output)
683
693
  resp = upload_foundry_run(body, upload) if upload is not None else create_foundry_run(body)
684
694
  except CLIError as exc:
685
695
  hint = msa_failure_hint(exc.message)
@@ -720,25 +730,49 @@ def foundry_run(
720
730
  )
721
731
  return
722
732
 
723
- _CONSOLE.print(f"[bold]Waiting for job {run_id}...[/bold]")
724
- final = _poll_until_terminal(run_id)
733
+ if not json_output:
734
+ _CONSOLE.print(f"[bold]Waiting for job {run_id}...[/bold]")
735
+ final = _poll_until_terminal(run_id, show_progress=not json_output)
725
736
  if json_output:
726
737
  run_simple_listing(payload=final)
727
738
  _exit_if_failed_run(final)
728
739
  return
729
740
 
730
- final_status = str(final.get("status", ""))
731
- style = "green" if final_status == "succeeded" else "red"
732
- _CONSOLE.print(f"[{style}]Job {run_id} finished: {final_status}[/{style}]")
733
- if final.get("error"):
734
- _CONSOLE.print(Text(f"Error: {final['error']}", style="red"))
735
- if final_status == "failed":
736
- hint = msa_failure_hint(str(final.get("error", "")) + "\n" + _extract_observability_error(final))
737
- if hint:
738
- _CONSOLE.print(Panel(Text(hint), title="MSA Settings", border_style="yellow"))
741
+ run_simple_listing(payload=final, renderable_output=_finished_run_renderable(run_id, final))
739
742
  _exit_if_failed_run(final)
740
743
 
741
744
 
745
+ def _print_research_preview_notice(*, json_output: bool) -> None:
746
+ if json_output:
747
+ typer.echo(RESEARCH_PREVIEW_NOTICE, err=True)
748
+ return
749
+ _STDERR_CONSOLE.print(
750
+ Panel(Text(_RESEARCH_PREVIEW_DETAIL), title="Research Preview", border_style="yellow", expand=False)
751
+ )
752
+
753
+
754
+ def _finished_run_renderable(run_id: str, run: dict[str, Any]) -> Group:
755
+ """The result of `workflows run --wait`: the job's details, an MSA hint if one applies, and next commands."""
756
+ status = str(run.get("status", ""))
757
+ failed = status.lower() == "failed"
758
+ renderables: list[Any] = [
759
+ Panel(_run_detail_table(run), title=f"Foundry Job {run_id}", border_style=_run_status_style(status))
760
+ ]
761
+ if failed:
762
+ hint = msa_failure_hint(str(run.get("error", "")) + "\n" + _extract_observability_error(run))
763
+ if hint:
764
+ renderables.append(Panel(Text(hint), title="MSA Settings", border_style="yellow"))
765
+ prefix = _foundry_command_prefix(str(run.get("workflow", "")))
766
+ commands = [f"{prefix} jobs get --id {run_id}"]
767
+ if _has_downloadable_results(run):
768
+ commands.append(f"{prefix} jobs download --id {run_id}")
769
+ commands.append(f"{prefix} jobs logs --id {run_id}")
770
+ if failed:
771
+ commands.append(f"{prefix} jobs error --id {run_id}")
772
+ renderables.append(command_examples(*commands, title="Commands"))
773
+ return Group(*renderables)
774
+
775
+
742
776
  _DEFAULT_LIST_LIMIT = 30
743
777
 
744
778
 
@@ -1388,8 +1422,9 @@ def foundry_cancel(run_id: str, *, json_output: bool, wait: bool = False) -> Non
1388
1422
  return
1389
1423
  cancel_foundry_run(run_id)
1390
1424
  if wait:
1391
- _CONSOLE.print(f"[bold]Waiting for job {run_id} to cancel...[/bold]")
1392
- run = _poll_until_terminal(run_id)
1425
+ if not json_output:
1426
+ _CONSOLE.print(f"[bold]Waiting for job {run_id} to cancel...[/bold]")
1427
+ run = _poll_until_terminal(run_id, show_progress=not json_output)
1393
1428
  else:
1394
1429
  run = get_foundry_run(run_id)
1395
1430
  status = str(run.get("status", ""))
@@ -2382,13 +2417,14 @@ def _extract_compile_errors(logs: str) -> str:
2382
2417
  # ---------------------------------------------------------------------------
2383
2418
 
2384
2419
 
2385
- def _poll_until_terminal(run_id: str) -> dict[str, Any]:
2420
+ def _poll_until_terminal(run_id: str, *, show_progress: bool = True) -> dict[str, Any]:
2386
2421
  while True:
2387
2422
  run = get_foundry_run(run_id)
2388
2423
  status = str(run.get("status", "")).lower()
2389
- steps_display = _steps_display(run)
2390
- suffix = f" ({steps_display})" if steps_display else ""
2391
- _CONSOLE.print(Text(f" status: {status}{suffix}"))
2424
+ if show_progress:
2425
+ steps_display = _steps_display(run)
2426
+ suffix = f" ({steps_display})" if steps_display else ""
2427
+ _CONSOLE.print(Text(f" status: {status}{suffix}"))
2392
2428
  if status in _TERMINAL_STATUSES:
2393
2429
  return run
2394
2430
  time.sleep(_POLL_INTERVAL)