apheris-foundry-cli 2.7.2__tar.gz → 2.8.0rc1__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 (76) hide show
  1. apheris_foundry_cli-2.8.0rc1/MANIFEST.in +2 -0
  2. {apheris_foundry_cli-2.7.2/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.8.0rc1}/PKG-INFO +204 -142
  3. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/README.md +203 -141
  4. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/pyproject.toml +1 -1
  5. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1/src/apheris_foundry_cli.egg-info}/PKG-INFO +204 -142
  6. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apheris_foundry_cli.egg-info/SOURCES.txt +3 -30
  7. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/foundry.py +71 -27
  8. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/login.py +62 -4
  9. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/weights.py +2 -2
  10. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/hub_requests.py +48 -8
  11. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/render.py +7 -2
  12. apheris_foundry_cli-2.8.0rc1/src/apherisfold_cli/core/weight_bindings.py +84 -0
  13. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/weight_import.py +1 -1
  14. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/handlers.py +25 -2
  15. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/main.py +93 -22
  16. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +42 -34
  17. apheris_foundry_cli-2.8.0rc1/src/apherisfold_cli/version.py +1 -0
  18. apheris_foundry_cli-2.7.2/src/apherisfold_cli/version.py +0 -1
  19. apheris_foundry_cli-2.7.2/tests/test_auth.py +0 -1266
  20. apheris_foundry_cli-2.7.2/tests/test_auth_lifecycle.py +0 -802
  21. apheris_foundry_cli-2.7.2/tests/test_benchmark_examples.py +0 -158
  22. apheris_foundry_cli-2.7.2/tests/test_browser.py +0 -63
  23. apheris_foundry_cli-2.7.2/tests/test_cli.py +0 -3603
  24. apheris_foundry_cli-2.7.2/tests/test_config.py +0 -191
  25. apheris_foundry_cli-2.7.2/tests/test_docs.py +0 -181
  26. apheris_foundry_cli-2.7.2/tests/test_documents.py +0 -169
  27. apheris_foundry_cli-2.7.2/tests/test_dry_run_guard.py +0 -73
  28. apheris_foundry_cli-2.7.2/tests/test_foundry_execution.py +0 -36
  29. apheris_foundry_cli-2.7.2/tests/test_foundry_helpers.py +0 -979
  30. apheris_foundry_cli-2.7.2/tests/test_foundry_warnings.py +0 -134
  31. apheris_foundry_cli-2.7.2/tests/test_handlers.py +0 -161
  32. apheris_foundry_cli-2.7.2/tests/test_hub_requests.py +0 -733
  33. apheris_foundry_cli-2.7.2/tests/test_input_archive.py +0 -286
  34. apheris_foundry_cli-2.7.2/tests/test_io.py +0 -164
  35. apheris_foundry_cli-2.7.2/tests/test_jobs_metadata.py +0 -65
  36. apheris_foundry_cli-2.7.2/tests/test_jobs_update.py +0 -103
  37. apheris_foundry_cli-2.7.2/tests/test_login_callback.py +0 -181
  38. apheris_foundry_cli-2.7.2/tests/test_main.py +0 -221
  39. apheris_foundry_cli-2.7.2/tests/test_model_discovery.py +0 -270
  40. apheris_foundry_cli-2.7.2/tests/test_msa.py +0 -357
  41. apheris_foundry_cli-2.7.2/tests/test_pubchem.py +0 -131
  42. apheris_foundry_cli-2.7.2/tests/test_render.py +0 -47
  43. apheris_foundry_cli-2.7.2/tests/test_result_artifacts.py +0 -324
  44. apheris_foundry_cli-2.7.2/tests/test_skills.py +0 -652
  45. apheris_foundry_cli-2.7.2/tests/test_weight_archive.py +0 -202
  46. apheris_foundry_cli-2.7.2/tests/test_weight_import.py +0 -848
  47. apheris_foundry_cli-2.7.2/tests/test_weights.py +0 -643
  48. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/LICENSE +0 -0
  49. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/setup.cfg +0 -0
  50. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
  51. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
  52. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
  53. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
  54. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/__init__.py +0 -0
  55. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/__init__.py +0 -0
  56. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/compounds.py +0 -0
  57. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/docs.py +0 -0
  58. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/settings.py +0 -0
  59. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/commands/skills.py +0 -0
  60. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/__init__.py +0 -0
  61. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/archive_paths.py +0 -0
  62. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/auth.py +0 -0
  63. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/browser.py +0 -0
  64. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/config.py +0 -0
  65. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/context.py +0 -0
  66. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/documents.py +0 -0
  67. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/errors.py +0 -0
  68. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/input_archive.py +0 -0
  69. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/io.py +0 -0
  70. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/limits.py +0 -0
  71. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/login_profiles.py +0 -0
  72. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/msa.py +0 -0
  73. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/pubchem.py +0 -0
  74. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/result_artifacts.py +0 -0
  75. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/src/apherisfold_cli/core/transient.py +0 -0
  76. {apheris_foundry_cli-2.7.2 → apheris_foundry_cli-2.8.0rc1}/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.8.0rc1
4
4
  Summary: Command-line interface for Apheris Foundry workflows.
5
5
  Author: Apheris
6
6
  License-Expression: LicenseRef-Apheris-Foundry-Software-License
@@ -121,9 +121,12 @@ 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 <workflow-id> --agent codex
125
125
  ```
126
126
 
127
+ Here and below, replace `<workflow-id>` with an ID that `workflows list` shows.
128
+ Which workflows exist, and what they're called, depends on your Hub.
129
+
127
130
  Use `--path ./.agents/skills` instead of `--agent` for another agent or a
128
131
  project directory. Reload skills in your agent if needed. Installing skills
129
132
  copies instructions; it does not log in or submit a job.
@@ -134,8 +137,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
134
137
 
135
138
  ```bash
136
139
  apheris-foundry skills show apheris-foundry-hub
137
- apheris-foundry skills show --workflow structure-predict
138
- apheris-foundry skills show apheris-workflow-structure-predict
140
+ apheris-foundry skills show --workflow <workflow-id>
141
+ apheris-foundry skills show apheris-workflow-<workflow-id>
139
142
  # Install every bundled and Hub workflow skill after login:
140
143
  apheris-foundry skills install --all --agent codex
141
144
  ```
@@ -148,10 +151,17 @@ Older Hubs or custom workflows may not provide skills yet. In that case, the
148
151
  CLI reports the API error; ask your Hub administrator to deploy workflow skills.
149
152
  See [Using the CLI](docs/usage.md) for help and skill provenance details.
150
153
 
151
- ## Quick start: predict a structure
154
+ ## Quick start: run a workflow
155
+
156
+ Each workflow documents itself: what it does, the input it takes, its settings
157
+ and its results. That documentation and the workflow's agent skill come from the
158
+ workflow package deployed on your Hub, so they always match what your Hub runs.
159
+ This README covers only the CLI.
152
160
 
153
161
  ### Choose an MSA server
154
162
 
163
+ Only workflows that search for multiple sequence alignments (MSAs) use this setting.
164
+
155
165
  MSA server preferences live under `settings`, just as in the Hub UI:
156
166
 
157
167
  ```bash
@@ -171,40 +181,29 @@ your own MSA files where required. Select a server again to re-enable it.
171
181
  Each command supports `--json`. See [MSA settings](docs/usage.md#msa-settings)
172
182
  for details about preference scope and scripting.
173
183
 
174
- ### Submit a prediction
184
+ ### Submit a job
175
185
 
176
- After login, check that your Hub offers prediction:
186
+ After login, find the workflow you need and read its documentation:
177
187
 
178
188
  ```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
- ```
183
-
184
- Save this small example as `request.json`:
185
-
186
- ```json
187
- {
188
- "queries": [{
189
- "chains": [{
190
- "chain_id": "A",
191
- "polymer_type": "protein",
192
- "sequence": "GSAEYVRALFDFNGNDEEDLPFKKGDILRIRDKPEEQWWNAEDSEGKRGMIPVPYVEKYHHHHHH"
193
- }]
194
- }]
195
- }
189
+ apheris-foundry workflows list
190
+ apheris-foundry workflows get --workflow <workflow-id>
191
+ apheris-foundry workflows docs --workflow <workflow-id>
192
+ apheris-foundry workflows models --workflow <workflow-id>
196
193
  ```
197
194
 
198
- Submit it using your Hub's default model settings:
195
+ `workflows get` also prints example commands built from that workflow's
196
+ definition. Prepare the input that the workflow's documentation describes, then
197
+ submit it with your Hub's default model settings:
199
198
 
200
199
  ```bash
201
- apheris-foundry workflows run --workflow structure-predict --input request.json
200
+ apheris-foundry workflows run --workflow <workflow-id> --input <input>
202
201
  ```
203
202
 
204
203
  Optionally add a name and one or more tags when submitting:
205
204
 
206
205
  ```bash
207
- apheris-foundry workflows run --workflow structure-predict --input request.json \
206
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> \
208
207
  --name "Kinase pilot" --tag kinase --tag pilot
209
208
  ```
210
209
 
@@ -214,21 +213,20 @@ removing empty tags and deduplicating them. `jobs list` shows the saved name and
214
213
  tags in separate `NAME` and `TAGS` columns; `jobs get --id <job-id>` shows both
215
214
  fields in detail. Missing names and tags appear as `—`.
216
215
 
217
- 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):
216
+ Repeat `--input` when the workflow takes several files for one run. Each file
217
+ is uploaded under its own name:
221
218
 
222
219
  ```bash
223
- apheris-foundry workflows run --workflow aqcell --input ligands.csv --input cell_lines.csv --input config.json
220
+ apheris-foundry workflows run --workflow <workflow-id> --input <file-1> --input <file-2>
224
221
  ```
225
222
 
226
- Folders and ZIP files use binary archive upload on Hub versions that support
227
- `POST /api/v1/foundry/runs/upload`:
223
+ When the workflow's input refers to other files by relative path, pass the
224
+ folder that holds all of them instead. Folders and ZIP files use binary archive
225
+ upload on Hub versions that support `POST /api/v1/foundry/runs/upload`:
228
226
 
229
227
  ```bash
230
- apheris-foundry workflows run --workflow aqcell-finetune --input ./input/ --name training
231
- apheris-foundry workflows run --workflow aqcell-finetune --input ./finetune-input.zip --strip-archive-root --name training
228
+ apheris-foundry workflows run --workflow <workflow-id> --input ./input/ --name training
229
+ apheris-foundry workflows run --workflow <workflow-id> --input ./input.zip --strip-archive-root --name training
232
230
  ```
233
231
 
234
232
  Folders are packaged automatically as an uncompressed ZIP in a temporary directory,
@@ -255,44 +253,29 @@ apheris-foundry jobs download --id <job-id> --output ./results
255
253
  ```
256
254
 
257
255
  If the job fails, use `apheris-foundry jobs error --id <job-id>` to inspect the
258
- error before retrying. Prediction requires a Hub with the model and compute
259
- resources configured; this example uses those resources.
256
+ error before retrying. A workflow runs only when its models and compute
257
+ resources are configured on your Hub.
260
258
 
261
259
  Override model parameters inline or from a JSON/YAML file. Select models and weights
262
- advertised by `workflows models`:
260
+ that `workflows models` lists; the field names come from the selected model's
261
+ parameter schema (see [Choosing how to pass settings](#choosing-how-to-pass-settings)):
263
262
 
264
263
  ```bash
265
- apheris-foundry workflows run --workflow structure-predict --input request.json \
266
- --model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
267
- apheris-foundry workflows run --workflow structure-predict --input request.json \
268
- --model <model-id> --weight <weight-version> \
264
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> \
265
+ --model-params '{"<field>": <value>}'
266
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> \
267
+ --model <model-id> --weight <weight-id> \
269
268
  --model-params @./model-params.yaml
270
269
  ```
271
270
 
272
- ### Submit a benchmark
273
-
274
- The [one-structure benchmark example](examples/benchmark/README.md) includes a
275
- public CIF, a YAML manifest, a JSON alternative, and commands for model/weight
276
- selection, MSA setup, submission and result inspection. The runnable folder
277
- contains exactly one manifest and its reference structure:
278
-
279
- ```bash
280
- apheris-foundry workflows run --workflow benchmark \
281
- --name benchmark-1B07-yaml --input ./examples/benchmark/input
282
- ```
283
-
284
- Check `workflows docs --workflow benchmark` and the model catalog on your Hub
285
- before running. This performs real prediction; no model-parameter overrides are
286
- needed for the workflow's one-sample, seed-42 defaults.
287
-
288
271
  ## Quick start: models and weights
289
272
 
290
273
  ```bash
291
274
  # 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
275
+ apheris-foundry workflows models --workflow <workflow-id>
276
+ apheris-foundry workflows models --workflow <workflow-id> --weight <weight-id>
294
277
  # 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
278
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> --model <model-id> --weight <weight-id>
296
279
  # 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
297
280
  apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
298
281
  # 4. It now appears as a weight in step 1; manage it by ID
@@ -300,9 +283,10 @@ apheris-foundry weights list
300
283
  apheris-foundry weights delete --id <weight-id> --yes
301
284
  ```
302
285
 
303
- The same steps work for `structural-finetune` (pick the base weight) and
304
- `benchmark`. Add `--json` for scripts. Deleting the source job also deletes its
305
- weights. Details: [Model weights](#model-weights-weights).
286
+ The same steps work for every workflow that lists models; for a training
287
+ workflow, the weight you pick is the starting point. Add `--json` for scripts. Once `weights enable` succeeds on Hub
288
+ 2.0 or later, you can delete the source job and keep using the enabled weight.
289
+ Details: [Model weights](#model-weights-weights).
306
290
 
307
291
  ## Edit job names and tags
308
292
 
@@ -328,37 +312,106 @@ the metadata change notification.
328
312
 
329
313
  ## Command reference
330
314
 
331
- ### Authentication
315
+ Every command, generated from the CLI itself. Workflow IDs, models and weights come
316
+ from your Hub, so the commands take them as options rather than listing them here.
317
+
318
+ <!-- BEGIN COMMAND REFERENCE: generated by `task docs:commands` from the CLI. Do not edit. -->
319
+
320
+ ### `login`
321
+
322
+ Log in to a Hub instance or inspect the current login session.
323
+
324
+ | Command | Description |
325
+ | --- | --- |
326
+ | `apheris-foundry login` | Log in to a Hub instance or inspect the current login session. |
327
+ | `apheris-foundry login status` | Show whether you're logged in, to which Hub and as whom. |
328
+
329
+ ### `workflows`
330
+
331
+ List, inspect, and run Foundry workflow definitions.
332
+
333
+ | Command | Description |
334
+ | --- | --- |
335
+ | `apheris-foundry workflows list` | List Foundry workflow definitions exposed by Hub. |
336
+ | `apheris-foundry workflows get` | Inspect one Foundry workflow definition. |
337
+ | `apheris-foundry workflows models` | List the models and weights a Foundry workflow accepts, with defaults. |
338
+ | `apheris-foundry workflows graph` | Show a Foundry workflow graph served by Hub. |
339
+ | `apheris-foundry workflows docs` | Read the documentation that a Foundry workflow's package ships. |
340
+ | `apheris-foundry workflows run` | Submit any Foundry workflow exposed by Hub. |
341
+
342
+ ### `jobs`
343
+
344
+ Manage submitted Foundry jobs.
345
+
346
+ | Command | Description |
347
+ | --- | --- |
348
+ | `apheris-foundry jobs list` | List jobs. |
349
+ | `apheris-foundry jobs get` | Inspect a submitted Foundry job, including workflow warnings and available files. |
350
+ | `apheris-foundry jobs update` | Edit metadata in any job status. |
351
+ | `apheris-foundry jobs logs` | Print logs for a Foundry job. |
352
+ | `apheris-foundry jobs download` | Download results for a completed Foundry job. |
353
+ | `apheris-foundry jobs error` | Print the saved error for a failed Foundry job. |
354
+ | `apheris-foundry jobs cancel` | Cancel a pending or running Foundry job. |
355
+ | `apheris-foundry jobs delete` | Permanently delete a terminal Foundry job and its files. |
356
+
357
+ ### `skills`
358
+
359
+ List and install CLI skills or workflow skills from the active Hub.
360
+
361
+ | Command | Description |
362
+ | --- | --- |
363
+ | `apheris-foundry skills list` | List CLI and active Hub workflow skills together. |
364
+ | `apheris-foundry skills show` | Display a bundled skill by name or a workflow skill from Hub. |
365
+ | `apheris-foundry skills install` | Install CLI skills or a Hub workflow skill into an agent's discovery directory. |
366
+
367
+ ### `docs`
368
+
369
+ Read private release notes, known issues and guides from your Hub.
370
+
371
+ | Command | Description |
372
+ | --- | --- |
373
+ | `apheris-foundry docs list` | List the private documents available on the selected Hub. |
374
+ | `apheris-foundry docs show` | Read a document path from 'docs list'. |
375
+
376
+ ### `settings`
377
+
378
+ Manage settings shared with the Hub UI.
379
+
380
+ | Command | Description |
381
+ | --- | --- |
382
+ | `apheris-foundry settings msa list` | List configured MSA servers and mark the active selection. |
383
+ | `apheris-foundry settings msa select` | Save an MSA server selection for this Hub, shared with the UI. |
384
+ | `apheris-foundry settings msa disable` | Disable automatic MSA for this Hub, shared with the UI. |
385
+
386
+ ### `weights`
387
+
388
+ Enable, import, inspect, label, share and delete model weights.
332
389
 
333
390
  | Command | Description |
334
- | ------- | ----------- |
335
- | `apheris-foundry login` | Log in to a Hub instance |
336
- | `apheris-foundry logout` | Log out of the current session |
391
+ | --- | --- |
392
+ | `apheris-foundry weights models` | List models and versions available for importing external checkpoints. |
393
+ | `apheris-foundry weights import` | Import an external checkpoint without a producing job; does not run prediction or certify compatibility. |
394
+ | `apheris-foundry weights list` | List your weights and weights shared with you. |
395
+ | `apheris-foundry weights get` | Inspect one of your weights or a weight shared with you. |
396
+ | `apheris-foundry weights enable` | Enable weights from a job artifact in Hub's weight catalog; this does not run prediction. |
397
+ | `apheris-foundry weights update` | Rename or relabel one of your active weights. |
398
+ | `apheris-foundry weights delete` | Delete one of your weights, which also stops sharing it. |
337
399
 
338
- ### Workflow definitions (`workflows`)
400
+ ### `tools`
401
+
402
+ Utilities for preparing scientific inputs.
339
403
 
340
404
  | Command | Description |
341
- | ------- | ----------- |
342
- | `apheris-foundry workflows list` | List workflow definitions exposed by Hub |
343
- | `apheris-foundry workflows get --workflow <id>` | Inspect one workflow definition and advertised model defaults |
344
- | `apheris-foundry workflows docs --workflow <id>` | Read the workflow's documentation, as its package ships it (`--json` includes the content digest) |
345
- | `apheris-foundry workflows models --workflow <id> [--capability <name>]` | List models, weights and defaults advertised by Hub (`--json` includes full metadata) |
346
- | `apheris-foundry workflows graph --workflow <id>` | Show the workflow DAG |
347
- | `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 |
405
+ | --- | --- |
406
+ | `apheris-foundry tools compounds resolve` | Resolve one public name or CID. |
348
407
 
349
- ### Run instances (`runs`)
408
+ ### Other commands
350
409
 
351
410
  | Command | Description |
352
- | ------- | ----------- |
353
- | `apheris-foundry jobs list [--workflow <id>]` | List submitted jobs using server-side filters and bounded hydration |
354
- | `apheris-foundry jobs get --id <job-id>` | Inspect a job and its artifacts |
355
- | `apheris-foundry jobs get --id <job-id> --web` | Print the job's Hub URL; add `--auto` to open it in the default browser |
356
- | `apheris-foundry jobs update --id <job-id> [--name <name>] [--tag <tag> ... \| --clear-tags]` | Edit metadata; omitted fields stay unchanged, tags replace all existing tags, and `--name ""` / `--clear-tags` clear fields |
357
- | `apheris-foundry jobs logs --id <job-id>` | Print logs for a job |
358
- | `apheris-foundry jobs error --id <job-id>` | Print the saved error for a failed job |
359
- | `apheris-foundry jobs download --id <job-id>` | Download results for a completed job into `./job_<job-id>_results/`, or `--output <dir>` |
360
- | `apheris-foundry jobs cancel --id <job-id>` | Cancel a pending or running job (`--yes` skips confirmation) |
361
- | `apheris-foundry jobs delete --id <job-id>` | Permanently delete a terminal job and its stored data (`--yes` skips confirmation) |
411
+ | --- | --- |
412
+ | `apheris-foundry logout` | Log out of the current Hub session. |
413
+
414
+ <!-- END COMMAND REFERENCE -->
362
415
 
363
416
  Use `--help` on any command for the full option reference and examples:
364
417
 
@@ -369,6 +422,10 @@ apheris-foundry jobs get --help
369
422
 
370
423
  `--name` optionally names the run. Omitted or blank names submit an unnamed run.
371
424
 
425
+ With `--json`, stdout contains only one JSON document; prompts, notices and
426
+ errors go to stderr. `workflows run --wait --json` prints nothing until the job
427
+ finishes. See [JSON output for scripts and agents](docs/usage.md#json-output-for-scripts-and-agents).
428
+
372
429
  ### Choosing how to pass settings
373
430
 
374
431
  Workflow instructions describe the configuration and its meaning; the CLI maps
@@ -377,6 +434,7 @@ that configuration to submission options:
377
434
  | Configuration | CLI option | Where to find accepted values |
378
435
  | --- | --- | --- |
379
436
  | Model and weight selection | `--model <id> --weight <version-or-enabled-id>` | `workflows models --workflow <id> --json` |
437
+ | Several enabled weights, one per weight parameter | `--<param> <enabled-weight-id>` | `workflows get --workflow <id>` lists the weight parameters |
380
438
  | Top-level workflow setting | Repeat `--param name=value` | `workflows get --workflow <id> --json` and the workflow docs |
381
439
  | Model-parameter object, when the workflow supports it | `--model-params '<JSON object>'` or `--model-params @file.json` / `@file.yaml` | The selected task's parameter schema and workflow restrictions |
382
440
  | Input data or a workflow-specific configuration file | `--input <file-or-folder>` | The workflow's input contract and preparation instructions |
@@ -401,44 +459,34 @@ copy every schema default into the object.
401
459
 
402
460
  Model task schemas retain their required fields. Hub's `modelParamsSuppliedFields`
403
461
  identifies the fields supplied by the workflow; only those may be omitted despite
404
- being required by the task. Structural fine-tuning requires a positive integer
405
- `max_steps` inside `--model-params`, for example `'{"max_steps":5000}'`.
406
- There is no implicit 1,000-step workflow default or unlimited sentinel. Hub also
407
- checks required fields when the whole model parameter object is omitted.
408
-
409
- For example, benchmark's batch size is a workflow setting, while its seed and
410
- detailed-score preference are model parameters:
411
-
412
- ```bash
413
- apheris-foundry workflows run --workflow benchmark --input prepared-benchmark/ \
414
- --model openfold3 \
415
- --param batchSize=5 \
416
- --model-params '{"seeds":[42],"write_detailed_scores":true}'
417
- ```
462
+ being required by the task. A workflow whose model needs a parameter, such as a
463
+ training step count, says so in its documentation. Hub also checks required
464
+ fields when the whole model parameter object is omitted.
418
465
 
419
- Structural fine-tuning uses the same model-parameter option for its training
420
- task. Dataset preparation is a separate task configured through `datasetParams`:
466
+ A run can combine a workflow setting with model parameters. The workflow's
467
+ documentation says which of its values is which:
421
468
 
422
469
  ```bash
423
- apheris-foundry workflows run --workflow structural-finetune --input prepared-training/ \
424
- --model-params '{"max_steps":5000,"learning_rate":0.001}' \
425
- --param 'datasetParams={"validation_failures":"ignore"}'
470
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> \
471
+ --model <model-id> \
472
+ --param <setting>=<value> \
473
+ --model-params '{"<field>": <value>}'
426
474
  ```
427
475
 
428
476
  Check that the deployed workflow supports these fields before submission.
429
- The detailed-score preference belongs only in the model-parameter object.
430
- Do not flatten a model field into `--param write_detailed_scores=false`, pass raw
477
+ Do not flatten a model field into `--param <field>=<value>`, pass raw
431
478
  `--param modelParams=...`, or translate an uploaded config file's keys into
432
479
  flags. Use the route the selected workflow documents; `--help` describes the
433
480
  installed CLI syntax.
434
481
 
435
482
  ### YAML model parameters
436
483
 
437
- For example, `model-params.yaml` can contain:
484
+ A `model-params.yaml` file holds the same object as the inline JSON, one field
485
+ per line, with the field names from the model's parameter schema:
438
486
 
439
487
  ```yaml
440
- seeds: [42]
441
- num_diffusion_samples: 1
488
+ <field>: <value>
489
+ <list-field>: [<value>, <value>]
442
490
  ```
443
491
 
444
492
  Files must be UTF-8 and no larger than 8 MiB, with fewer than 50 nesting levels.
@@ -446,8 +494,7 @@ Duplicate keys, aliases, explicit YAML tags, multiple documents and non-finite
446
494
  numbers are rejected. Scalars use JSON spellings; `on` and dates stay strings.
447
495
  Inline values and files without a `.yaml`/`.yml` extension must use JSON syntax.
448
496
  Workflow inputs are uploaded unchanged; YAML manifest support depends on the
449
- workflow package deployed in Hub. Released CLI 0.10.0 accepts JSON parameter
450
- files only.
497
+ workflow package deployed in Hub.
451
498
 
452
499
  ## License
453
500
 
@@ -470,11 +517,11 @@ apheris-foundry weights enable --name <unique-name> --run-id <job-id> --path <ru
470
517
  # 2. Label or rename it; --tag replaces the whole tag set, --clear-tags removes it
471
518
  apheris-foundry weights update --id <weight-id> --tag trial --tag benchmark --name <new-name>
472
519
  # 3. Find and inspect it
473
- apheris-foundry weights list --model aqcell --version aqcell:0.2.0 --tag benchmark
520
+ apheris-foundry weights list --model <model-id> --version <model-version> --tag benchmark
474
521
  apheris-foundry weights get --id <weight-id>
475
522
  # 4. Use it
476
- apheris-foundry workflows models --workflow aqcell --json
477
- apheris-foundry workflows run --workflow aqcell --input ./input --weight <weight-id>
523
+ apheris-foundry workflows models --workflow <workflow-id> --json
524
+ apheris-foundry workflows run --workflow <workflow-id> --input ./input --weight <weight-id>
478
525
  # 5. Retire it (also stops sharing it)
479
526
  apheris-foundry weights delete --id <weight-id> --yes
480
527
  apheris-foundry weights delete --id <weight-id> --delete-files --yes
@@ -501,7 +548,7 @@ name of 1–255 characters after trimming whitespace, without control characters
501
548
  Names are case-sensitive and must be unique among active weights; deleting a
502
549
  weight frees its name. `--description`
503
550
  is separate metadata and does not replace the name. Use the path shown by
504
- `jobs get`, including the complete directory for AQCell bundles. Optional
551
+ `jobs get`, including the complete directory when the weights are a bundle of files. Optional
505
552
  `--task`, `--description`, `--derived-from`, repeated `--capability` and
506
553
  repeated `--tag` values accompany the request; Hub derives and validates model
507
554
  identity and ownership. `--dry-run true weights enable ...` prints the request
@@ -523,11 +570,11 @@ Start by listing the models and versions that the connected Hub accepts for impo
523
570
  apheris-foundry weights models
524
571
  ```
525
572
 
526
- Example discovery output (your Hub's entries may differ):
573
+ It prints one row per model version that accepts a checkpoint:
527
574
 
528
575
  ```text
529
- MODEL VERSION LABEL
530
- openfold3 openfold3:of3ob Preview 2
576
+ MODEL VERSION LABEL
577
+ <model-id> <model-version> <label>
531
578
  ```
532
579
 
533
580
  Copy `MODEL` into `--model` and `VERSION` into `--version` from the same row.
@@ -537,17 +584,17 @@ your imported weights. You may omit `--version` when that model has exactly one
537
584
  available version. If it has several, the CLI lists the choices and requires an
538
585
  explicit `--version` before uploading.
539
586
 
540
- For the example row above:
587
+ With the values from one row:
541
588
 
542
589
  ```sh
543
590
  # Raw checkpoint, with an explicit model version
544
- apheris-foundry weights import --name kinase-ft --model openfold3 --version openfold3:of3ob --checkpoint ./model.pt
591
+ apheris-foundry weights import --name kinase-ft --model <model-id> --version <model-version> --checkpoint ./model.pt
545
592
 
546
- # Short form: only valid when openfold3 has exactly one available version
547
- apheris-foundry weights import --name kinase-ft --model openfold3 --checkpoint ./model.pt
593
+ # Short form: only valid when the model has exactly one available version
594
+ apheris-foundry weights import --name kinase-ft --model <model-id> --checkpoint ./model.pt
548
595
 
549
596
  # ZIP: select weights/model.pt after removing the archive's common root directory
550
- apheris-foundry weights import --name kinase-bundle --model openfold3 --version openfold3:of3ob --archive ./weights.zip --checkpoint-path weights/model.pt --strip-archive-root
597
+ apheris-foundry weights import --name kinase-bundle --model <model-id> --version <model-version> --archive ./weights.zip --checkpoint-path weights/model.pt --strip-archive-root
551
598
  ```
552
599
 
553
600
  For scripts and agents, `weights models --json` returns the Hub's
@@ -649,9 +696,7 @@ cleanup requires an explicit `--delete-files` request.
649
696
 
650
697
  Hub copies enabled checkpoints into independent storage, so deleting the
651
698
  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.
699
+ ones.
655
700
  `--dry-run true` previews `update` and `delete` after reading the current
656
701
  record. The delete preview includes `deleteFiles`; it does not check active
657
702
  jobs or remove files.
@@ -660,24 +705,40 @@ Use a CLI release that supports `weights enable --name`. Upgrade if this
660
705
  command is unavailable; adding `--description` does not replace the required
661
706
  weight name.
662
707
 
663
- Some workflows accept checkpoint files directly. Read the active workflow's
664
- skill before enabling weights: `affinity-predict-from-embeddings` documents uploading
665
- the selected affinity-head checkpoint as `checkpoint.ckpt` alongside
666
- `test_queries.yaml` (or JSON), referenced MSAs and optional labels. That route
667
- does not require enabling weights in the catalog or `--weight`. Its `of3Checkpoint` parameter
668
- selects the separate OpenFold3 trunk, not the affinity head. Report prediction
708
+ Workflows that read several models in one run list weight parameters in
709
+ `workflows get --workflow <workflow-id>` (`weightParams` in `--json`): each
710
+ names the task it feeds and the model a weight must have been produced by.
711
+ Bind one enabled weight to each with an option named like the parameter, the
712
+ same name a toolkit-only run passes a path to:
713
+
714
+ ```bash
715
+ apheris-foundry workflows run --workflow <workflow-id> --input <input> \
716
+ --<weight-param> <weight-id> --<other-weight-param> <weight-id>
717
+ ```
718
+
719
+ Hub checks that you may use each weight and that it was produced by the
720
+ task's model, mounts it read-only in that task's pods and records it on the
721
+ run's task. A bare `--weight <id>` keeps selecting one weight as before; it
722
+ can't be combined with weight options, nor can `--model`. A Hub that predates
723
+ weight parameters lists none, and the CLI refuses the options rather than
724
+ submit a run that would ignore them.
725
+
726
+ Some workflows take a checkpoint file directly as part of their input instead
727
+ of an enabled weight. Read the workflow's documentation and skill before
728
+ enabling weights: they say which file to upload and under which name. That route
729
+ does not need `weights enable` or `--weight`. Report prediction
669
730
  submission/completion separately from weight registration.
670
731
 
671
732
  Workflow skill responses may include shared presentation skills. Installation
672
733
  validates their content digests and installs them alongside the workflow skill;
673
- `--all` deduplicates equal versions and rejects conflicting ones. The shared
674
- source lives in foundry-cli and travels through Hub, not in this Python package.
734
+ `--all` deduplicates equal versions and rejects conflicting ones. Hub serves
735
+ these with the workflow skill; they aren't part of this Python package.
675
736
 
676
737
  The optional skill `resources` field currently carries only `vocabulary.json`.
677
738
  The CLI checks its name, UTF-8 byte limit, SHA-256 and JSON syntax before writing
678
739
  it beside the workflow SKILL.md. A malformed resource prevents installation.
679
- Older Hubs omit resources; updated AQCell skills state that preflight vocabulary
680
- is then unavailable rather than claiming membership was checked.
740
+ Older Hubs omit resources; workflow skills that use one then say that the
741
+ vocabulary check is unavailable rather than claiming it was done.
681
742
 
682
743
  ### Public compound resolution (no Hub required)
683
744
 
@@ -713,7 +774,7 @@ Find jobs by name, ID, or tag:
713
774
 
714
775
  ```sh
715
776
  apheris-foundry jobs list --search 'screen_1'
716
- apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
777
+ apheris-foundry jobs list --workflow <workflow-id> --status succeeded --limit 10
717
778
  ```
718
779
 
719
780
  Search is literal (no wildcards). Workflow and status filters can be repeated.
@@ -731,8 +792,9 @@ and model details use this explanation:
731
792
 
732
793
  > 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
794
 
734
- Running a preview prints the same notice to stderr, including with
735
- `--json`, so stdout remains machine-readable. The Hub's `researchPreview` boolean
795
+ Running a preview prints the same explanation to stderr, so stdout remains
796
+ machine-readable: in a yellow **Research Preview** panel, or as one plain line
797
+ with `--json`. The Hub's `researchPreview` boolean
736
798
  is preserved in workflow/model JSON output; missing or false shows no label.
737
799
  CLI-only access and preview status are independent.
738
800
  Workflow discovery shows Hub's categories, tags, and UI mode. Local dry-runs do