chore: rename Navigator to NemoClaw across user facing contracts (#73)

This commit is contained in:
Drew Newberry
2026-03-03 11:41:19 -08:00
committed by GitHub
parent 46381e65cf
commit 9099bc3972
99 changed files with 654 additions and 658 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Navigator - Agent execution and management SDK."""
"""NemoClaw - Agent execution and management SDK."""
from __future__ import annotations
+6 -6
View File
@@ -151,7 +151,7 @@ class SandboxClient:
cluster_name = cluster or _resolve_active_cluster()
metadata_path = (
_xdg_config_home()
/ "navigator"
/ "nemoclaw"
/ "clusters"
/ f"{cluster_name}_metadata.json"
)
@@ -162,7 +162,7 @@ class SandboxClient:
endpoint = f"{host}:{port}"
if parsed.scheme == "https":
mtls_dir = (
_xdg_config_home() / "navigator" / "clusters" / cluster_name / "mtls"
_xdg_config_home() / "nemoclaw" / "clusters" / cluster_name / "mtls"
)
tls = TlsConfig(
ca_path=mtls_dir / "ca.crt",
@@ -362,7 +362,7 @@ class SandboxClient:
timeout_seconds: int | None = None,
) -> ExecResult:
exec_env = dict(env or {})
exec_env["NAVIGATOR_PYFUNC_B64"] = _serialize_python_callable(
exec_env["NEMOCLAW_PYFUNC_B64"] = _serialize_python_callable(
function,
args=args,
kwargs=kwargs,
@@ -563,7 +563,7 @@ class Sandbox:
_PYTHON_CLOUDPICKLE_BOOTSTRAP = (
"import base64,cloudpickle,os;"
"payload=base64.b64decode(os.environ['NAVIGATOR_PYFUNC_B64']);"
"payload=base64.b64decode(os.environ['NEMOCLAW_PYFUNC_B64']);"
"func,args,kwargs=cloudpickle.loads(payload);"
"result=func(*args,**kwargs);"
"print(result) if result is not None else None"
@@ -630,10 +630,10 @@ def _xdg_config_home() -> pathlib.Path:
def _resolve_active_cluster() -> str:
env_cluster = os.environ.get("NAVIGATOR_CLUSTER")
env_cluster = os.environ.get("NEMOCLAW_CLUSTER")
if env_cluster:
return env_cluster
active_file = _xdg_config_home() / "navigator" / "active_cluster"
active_file = _xdg_config_home() / "nemoclaw" / "active_cluster"
value = active_file.read_text().strip()
if value == "":
raise SandboxError("no active cluster configured")
+1 -1
View File
@@ -63,5 +63,5 @@ def test_exec_python_serializes_callable_payload() -> None:
"-c",
_PYTHON_CLOUDPICKLE_BOOTSTRAP,
]
assert stub.request.environment["NAVIGATOR_PYFUNC_B64"]
assert stub.request.environment["NEMOCLAW_PYFUNC_B64"]
assert stub.request.stdin == b""