apheris-foundry-cli 2.4.0__tar.gz → 2.5.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.4.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.5.0}/PKG-INFO +1 -1
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/pyproject.toml +1 -1
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0/src/apheris_foundry_cli.egg-info}/PKG-INFO +1 -1
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/docs.py +3 -12
- apheris_foundry_cli-2.5.0/src/apherisfold_cli/version.py +1 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_docs.py +3 -12
- apheris_foundry_cli-2.4.0/src/apherisfold_cli/version.py +0 -1
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/LICENSE +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/README.md +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/setup.cfg +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/SOURCES.txt +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/__init__.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/__init__.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/compounds.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/foundry.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/login.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/settings.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/skills.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/weights.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/__init__.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/auth.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/browser.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/config.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/context.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/documents.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/errors.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/hub_requests.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/input_archive.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/io.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/limits.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/login_profiles.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/msa.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/pubchem.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/render.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/result_artifacts.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/transient.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/handlers.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/main.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_auth.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_auth_lifecycle.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_benchmark_examples.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_browser.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_cli.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_config.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_documents.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_dry_run_guard.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_foundry_helpers.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_foundry_warnings.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_handlers.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_hub_requests.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_input_archive.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_io.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_jobs_metadata.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_jobs_update.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_login_callback.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_main.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_model_discovery.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_msa.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_pubchem.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_render.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_result_artifacts.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_skills.py +0 -0
- {apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/tests/test_weights.py +0 -0
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/docs.py
RENAMED
|
@@ -6,7 +6,6 @@ from typing import Annotated, Any
|
|
|
6
6
|
|
|
7
7
|
import typer
|
|
8
8
|
from rich import box
|
|
9
|
-
from rich.console import Group
|
|
10
9
|
from rich.markdown import Markdown
|
|
11
10
|
from rich.table import Table
|
|
12
11
|
from rich.text import Text
|
|
@@ -40,9 +39,7 @@ def _pages(entries: Any, depth: int = 0, sections: tuple[str, ...] = ()) -> list
|
|
|
40
39
|
or any(char in path for char in "\\?#:%")
|
|
41
40
|
):
|
|
42
41
|
raise _invalid()
|
|
43
|
-
pages.append(
|
|
44
|
-
{"title": entry["title"], "path": path, "sections": sections, "draft": entry.get("draft") is True}
|
|
45
|
-
)
|
|
42
|
+
pages.append({"title": entry["title"], "path": path, "sections": sections})
|
|
46
43
|
else:
|
|
47
44
|
pages.extend(_pages(entry.get("children"), depth + 1, (*sections, entry["title"])))
|
|
48
45
|
return pages
|
|
@@ -113,10 +110,7 @@ def list_docs(
|
|
|
113
110
|
section = " › ".join(page["sections"])
|
|
114
111
|
if page["sections"] and page["sections"] == latest:
|
|
115
112
|
section += " (latest)"
|
|
116
|
-
|
|
117
|
-
if page["draft"]:
|
|
118
|
-
title.append(" Draft", style="yellow")
|
|
119
|
-
table.add_row(Text(section), title, Text(page["path"]))
|
|
113
|
+
table.add_row(Text(section), Text(page["title"]), Text(page["path"]))
|
|
120
114
|
run_simple_listing(payload=payload, renderable_output=table)
|
|
121
115
|
|
|
122
116
|
|
|
@@ -156,7 +150,4 @@ def show_doc(
|
|
|
156
150
|
run_simple_listing(payload=payload)
|
|
157
151
|
else:
|
|
158
152
|
body = re.sub(r"\A---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\Z)", "", content, count=1)
|
|
159
|
-
|
|
160
|
-
if payload.get("draft") is True:
|
|
161
|
-
renderable = Group(Text("Draft: unreviewed, may change before release.", style="yellow"), renderable)
|
|
162
|
-
run_simple_listing(payload=payload, renderable_output=renderable)
|
|
153
|
+
run_simple_listing(payload=payload, renderable_output=Markdown(body))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.5.0"
|
|
@@ -107,7 +107,7 @@ RELEASES_INDEX = {
|
|
|
107
107
|
"toolkitVersion": "v0.1.1-0.20261103113419-2c72f429d059",
|
|
108
108
|
"navigation": [
|
|
109
109
|
{"title": "Overview", "path": "index.md"},
|
|
110
|
-
{"title": "Deployment", "children": [{"title": "Upgrade", "path": "deployment/upgrade.md"
|
|
110
|
+
{"title": "Deployment", "children": [{"title": "Upgrade", "path": "deployment/upgrade.md"}]},
|
|
111
111
|
{
|
|
112
112
|
"title": "Releases",
|
|
113
113
|
"children": [
|
|
@@ -134,12 +134,12 @@ def _rows(output: str) -> list[str]:
|
|
|
134
134
|
return [" ".join(line.split()) for line in output.splitlines() if ".md" in line]
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
def
|
|
137
|
+
def test_list_names_sections_releases_and_builds(releases):
|
|
138
138
|
result = runner.invoke(app, ["docs", "list"], env={"COLUMNS": "120"})
|
|
139
139
|
assert result.exit_code == 0, result.output
|
|
140
140
|
assert _rows(result.output) == [
|
|
141
141
|
"Overview index.md",
|
|
142
|
-
"Deployment Upgrade
|
|
142
|
+
"Deployment Upgrade deployment/upgrade.md",
|
|
143
143
|
"Releases › Foundry 1.2.0 (latest) Release notes releases/1.2.0/release-notes.md",
|
|
144
144
|
"Releases › Foundry 1.2.0 (latest) Known issues releases/1.2.0/known-issues.md",
|
|
145
145
|
"Releases › Foundry 1.1.0 Release notes releases/1.1.0/release-notes.md",
|
|
@@ -179,12 +179,3 @@ def test_older_hub_without_toolkit_version(monkeypatch):
|
|
|
179
179
|
result = runner.invoke(app, ["docs", "list"])
|
|
180
180
|
assert result.exit_code == 0, result.output
|
|
181
181
|
assert "Hub old" in result.output and "foundry-toolkit" not in result.output
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
def test_show_marks_draft_documents(document):
|
|
185
|
-
document["draft"] = True
|
|
186
|
-
result = runner.invoke(app, ["docs", "show", PATH])
|
|
187
|
-
assert result.exit_code == 0, result.output
|
|
188
|
-
assert "Draft: unreviewed" in result.output
|
|
189
|
-
raw = runner.invoke(app, ["docs", "show", PATH, "--raw"])
|
|
190
|
-
assert raw.stdout_bytes == CONTENT.encode()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.4.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apheris_foundry_cli.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/__init__.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/compounds.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/foundry.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/login.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/settings.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/skills.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/commands/weights.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.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.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/documents.py
RENAMED
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/hub_requests.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/input_archive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.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.4.0 → apheris_foundry_cli-2.5.0}/src/apherisfold_cli/core/result_artifacts.py
RENAMED
|
File without changes
|
{apheris_foundry_cli-2.4.0 → apheris_foundry_cli-2.5.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
|
|
File without changes
|