apheris-foundry-cli 2.5.0__tar.gz → 2.6.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.
- {apheris_foundry_cli-2.5.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.6.0}/PKG-INFO +1 -1
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/pyproject.toml +1 -1
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0/src/apheris_foundry_cli.egg-info}/PKG-INFO +1 -1
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apheris_foundry_cli.egg-info/SOURCES.txt +1 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/foundry.py +12 -3
- apheris_foundry_cli-2.6.0/src/apherisfold_cli/version.py +1 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_cli.py +9 -2
- apheris_foundry_cli-2.6.0/tests/test_foundry_execution.py +36 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_jobs_metadata.py +1 -0
- apheris_foundry_cli-2.5.0/src/apherisfold_cli/version.py +0 -1
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/LICENSE +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/README.md +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/setup.cfg +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/__init__.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/__init__.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/compounds.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/docs.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/login.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/settings.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/skills.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/weights.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/__init__.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/auth.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/browser.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/config.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/context.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/documents.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/errors.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/hub_requests.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/input_archive.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/io.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/limits.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/login_profiles.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/msa.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/pubchem.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/render.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/result_artifacts.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/transient.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/handlers.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/main.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_auth.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_auth_lifecycle.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_benchmark_examples.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_browser.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_config.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_docs.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_documents.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_dry_run_guard.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_foundry_helpers.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_foundry_warnings.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_handlers.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_hub_requests.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_input_archive.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_io.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_jobs_update.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_login_callback.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_main.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_model_discovery.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_msa.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_pubchem.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_render.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_result_artifacts.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_skills.py +0 -0
- {apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/tests/test_weights.py +0 -0
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/foundry.py
RENAMED
|
@@ -86,10 +86,9 @@ def _run_table(runs: list[dict[str, Any]], *, show_workflow: bool = False) -> Ta
|
|
|
86
86
|
]
|
|
87
87
|
if show_workflow:
|
|
88
88
|
row.append(str(run.get("workflow", "")))
|
|
89
|
-
params = run.get("params") if isinstance(run.get("params"), dict) else {}
|
|
90
89
|
row += [
|
|
91
|
-
Text(
|
|
92
|
-
Text(
|
|
90
|
+
Text(_execution_label(run, "modelId")),
|
|
91
|
+
Text(_execution_label(run, "weight")),
|
|
93
92
|
Text(status, style=style),
|
|
94
93
|
Text(_steps_display(run), overflow="ellipsis"),
|
|
95
94
|
_format_run_duration(run),
|
|
@@ -99,6 +98,14 @@ def _run_table(runs: list[dict[str, Any]], *, show_workflow: bool = False) -> Ta
|
|
|
99
98
|
return table
|
|
100
99
|
|
|
101
100
|
|
|
101
|
+
def _execution_label(run: dict[str, Any], field: str) -> str:
|
|
102
|
+
"""Display saved execution identity, including defaults resolved by Hub."""
|
|
103
|
+
execution = run.get("execution")
|
|
104
|
+
tasks = execution.get("tasks", []) if isinstance(execution, dict) else []
|
|
105
|
+
values = [task.get(field) for task in tasks if isinstance(task, dict)] if isinstance(tasks, list) else []
|
|
106
|
+
return ", ".join(dict.fromkeys(value for value in values if isinstance(value, str) and value)) or "—"
|
|
107
|
+
|
|
108
|
+
|
|
102
109
|
def _run_tags_display(run: dict[str, Any]) -> str:
|
|
103
110
|
tags = run.get("tags") if isinstance(run.get("tags"), list) else []
|
|
104
111
|
return ", ".join(str(tag) for tag in tags) or "—"
|
|
@@ -359,6 +366,8 @@ def _run_detail_renderable(
|
|
|
359
366
|
detail.add_row("NAME", Text(str(run.get("name") or "—")))
|
|
360
367
|
detail.add_row("TAGS", Text(_run_tags_display(run)))
|
|
361
368
|
detail.add_row("WORKFLOW", str(run.get("workflow", "")))
|
|
369
|
+
detail.add_row("MODEL", Text(_execution_label(run, "modelId")))
|
|
370
|
+
detail.add_row("WEIGHT", Text(_execution_label(run, "weight")))
|
|
362
371
|
steps = _step_display_names(run)
|
|
363
372
|
if steps:
|
|
364
373
|
detail.add_row("STEPS" if len(steps) > 1 else "STEP", Text(", ".join(steps)))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.6.0"
|
|
@@ -1128,7 +1128,8 @@ def test_foundry_list_shows_explicit_name_tags_model_and_weight(monkeypatch, wor
|
|
|
1128
1128
|
"status": "running",
|
|
1129
1129
|
# Hub rejects "weights" in create requests but stores the resolved path in
|
|
1130
1130
|
# run params, so list responses include it; the table must not show it.
|
|
1131
|
-
"params": {"model": "
|
|
1131
|
+
"params": {"model": "wrong", "weight": "wrong", "weights": "/app/weights/model.pt"},
|
|
1132
|
+
"execution": {"tasks": [{"modelId": "openfold3", "weight": "0.3.0"}]},
|
|
1132
1133
|
"tags": ["cli-pr210-e2e"],
|
|
1133
1134
|
"observability": {"steps": [], "outputs": []},
|
|
1134
1135
|
}
|
|
@@ -1171,7 +1172,13 @@ def test_foundry_list_tolerates_missing_model_and_weight(monkeypatch, run_fields
|
|
|
1171
1172
|
def test_foundry_list_renders_model_and_weight_literally_and_preserves_json(monkeypatch) -> None:
|
|
1172
1173
|
payload = {
|
|
1173
1174
|
"total": 1,
|
|
1174
|
-
"runs": [
|
|
1175
|
+
"runs": [
|
|
1176
|
+
{
|
|
1177
|
+
"id": "job",
|
|
1178
|
+
"tags": ["cli"],
|
|
1179
|
+
"execution": {"tasks": [{"modelId": "[red]model", "weight": "[bold]weight"}]},
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1175
1182
|
}
|
|
1176
1183
|
monkeypatch.setattr("apherisfold_cli.commands.foundry.list_foundry_runs", lambda **kwargs: payload)
|
|
1177
1184
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from io import StringIO
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
from rich.console import Console
|
|
5
|
+
|
|
6
|
+
from apherisfold_cli.commands.foundry import _execution_label, _run_detail_renderable, _run_table
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@pytest.mark.parametrize("params", [{}, {"model": "wrong-request", "weight": "wrong-weight"}])
|
|
10
|
+
@pytest.mark.parametrize("view", ["list", "detail"])
|
|
11
|
+
def test_displays_saved_execution_even_without_parameters(params, view):
|
|
12
|
+
run = {
|
|
13
|
+
"id": "foundry_example",
|
|
14
|
+
"params": params,
|
|
15
|
+
"execution": {"tasks": [{"modelId": "openfold3", "weight": "checkpoint-v1"}]},
|
|
16
|
+
}
|
|
17
|
+
output = StringIO()
|
|
18
|
+
Console(file=output, width=240, color_system=None).print(
|
|
19
|
+
_run_table([run]) if view == "list" else _run_detail_renderable(run)
|
|
20
|
+
)
|
|
21
|
+
assert "openfold3" in output.getvalue()
|
|
22
|
+
assert "checkpoint-v1" in output.getvalue()
|
|
23
|
+
assert "wrong-request" not in output.getvalue()
|
|
24
|
+
assert "wrong-weight" not in output.getvalue()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@pytest.mark.parametrize("view", ["list", "detail"])
|
|
28
|
+
def test_does_not_reconstruct_missing_execution_from_parameters(view):
|
|
29
|
+
run = {"id": "foundry_old", "params": {"model": "requested-model", "weight": "requested-weight"}}
|
|
30
|
+
output = StringIO()
|
|
31
|
+
Console(file=output, width=240, color_system=None).print(
|
|
32
|
+
_run_table([run]) if view == "list" else _run_detail_renderable(run)
|
|
33
|
+
)
|
|
34
|
+
assert _execution_label(run, "modelId") == _execution_label(run, "weight") == "—"
|
|
35
|
+
assert "requested-model" not in output.getvalue()
|
|
36
|
+
assert "requested-weight" not in output.getvalue()
|
|
@@ -27,6 +27,7 @@ def test_list_metadata_columns_preserve_api_fields_and_full_ids(width, show_work
|
|
|
27
27
|
run = {
|
|
28
28
|
"id": "foundry_a1b2c3d4e5f67890",
|
|
29
29
|
"workflow": "predict",
|
|
30
|
+
"execution": {"tasks": [{"modelId": "openfold3", "weight": "of3ob"}]},
|
|
30
31
|
"params": {"model": "openfold3", "weight": "of3ob", "requestSubpath": "unrelated-input.json"},
|
|
31
32
|
"observability": {"outputs": [{"type": "metadata", "path": "invented-name_sample_1.json"}]},
|
|
32
33
|
**metadata,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.5.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/__init__.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/compounds.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/docs.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/login.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/settings.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/skills.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/commands/weights.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/documents.py
RENAMED
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/hub_requests.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/input_archive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/login_profiles.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/result_artifacts.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.5.0 → apheris_foundry_cli-2.6.0}/src/apherisfold_cli/core/transient.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|