levain-runtime 0.1.3__tar.gz → 0.1.4__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.
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/PKG-INFO +1 -1
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/chisel.py +10 -1
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/cli.py +1 -1
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/pyproject.toml +1 -1
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/.gitignore +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/LICENSE +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/README.md +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/__init__.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/__main__.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/config.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/heartbeat.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/platform_api.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/process.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/protocol.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/sandbox/node_runner.py.vendored +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/sandbox/run_logging.py.vendored +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/server.py +0 -0
- {levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/sessions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: levain-runtime
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Self-hosted runtime for Levain agents: run an agent's nodes on your own machine or container while the platform drives the recipe
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -90,6 +90,15 @@ def server_url(gateway_url: str) -> str:
|
|
|
90
90
|
return gateway_url
|
|
91
91
|
|
|
92
92
|
|
|
93
|
+
def gateway(creds: Credentials) -> str:
|
|
94
|
+
"""The gateway to dial: the platform's, unless this host overrides it.
|
|
95
|
+
|
|
96
|
+
A runner on the platform cluster's own node dials the gateway Service
|
|
97
|
+
directly instead of looping out through the public edge and back.
|
|
98
|
+
"""
|
|
99
|
+
return os.environ.get("LEVAIN_RUNTIME_GATEWAY_URL") or creds.gateway_url
|
|
100
|
+
|
|
101
|
+
|
|
93
102
|
def client_argv(binary: Path, creds: Credentials) -> list[str]:
|
|
94
103
|
remotes = [f"R:{creds.reverse_port}:127.0.0.1:{RUNNER_HTTP_PORT}"]
|
|
95
104
|
remotes += [f"{f.local_port}:{f.remote}" for f in creds.forwards]
|
|
@@ -102,7 +111,7 @@ def client_argv(binary: Path, creds: Credentials) -> list[str]:
|
|
|
102
111
|
# default lets the reconnect wait grow to five minutes.
|
|
103
112
|
"--max-retry-interval",
|
|
104
113
|
"30s",
|
|
105
|
-
server_url(creds
|
|
114
|
+
server_url(gateway(creds)),
|
|
106
115
|
*remotes,
|
|
107
116
|
]
|
|
108
117
|
|
|
@@ -382,7 +382,7 @@ def status() -> None:
|
|
|
382
382
|
)
|
|
383
383
|
if config.credentials:
|
|
384
384
|
print(f"runtime: {config.credentials.runtime_id}")
|
|
385
|
-
print(f"gateway: {config.credentials
|
|
385
|
+
print(f"gateway: {chisel.gateway(config.credentials)}")
|
|
386
386
|
else:
|
|
387
387
|
print("runtime: not connected")
|
|
388
388
|
if config.mode == "direct":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "levain-runtime"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4"
|
|
4
4
|
description = "Self-hosted runtime for Levain agents: run an agent's nodes on your own machine or container while the platform drives the recipe"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.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
|
|
File without changes
|
|
File without changes
|
{levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/sandbox/node_runner.py.vendored
RENAMED
|
File without changes
|
{levain_runtime-0.1.3 → levain_runtime-0.1.4}/levain_runtime/sandbox/run_logging.py.vendored
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|