agentstack-cli 0.7.0rc12__tar.gz → 0.7.0rc14__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.
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/PKG-INFO +1 -1
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/pyproject.toml +1 -1
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/model.py +0 -3
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/platform.py +29 -16
- agentstack_cli-0.7.0rc14/src/agentstack_cli/data/helm-chart.tgz +0 -0
- agentstack_cli-0.7.0rc12/src/agentstack_cli/data/helm-chart.tgz +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/README.md +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/__init__.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/api.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/async_typer.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/auth_manager.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/__init__.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/agent.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/build.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/connector.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/self.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/server.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/user.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/configuration.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/console.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/data/.gitignore +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/server_utils.py +0 -0
- {agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/utils.py +0 -0
|
@@ -464,9 +464,6 @@ async def _select_default_model(
|
|
|
464
464
|
{"role": "user", "content": "Hello!"},
|
|
465
465
|
],
|
|
466
466
|
)
|
|
467
|
-
console.print(f"DEBUG response: choices={test_response.choices!r}")
|
|
468
|
-
if test_response.choices:
|
|
469
|
-
console.print(f"DEBUG content: {test_response.choices[0].message.content!r}")
|
|
470
467
|
if not test_response.choices or "hello" not in (test_response.choices[0].message.content or "").lower():
|
|
471
468
|
raise ModelProviderError("Model did not provide a proper response.")
|
|
472
469
|
else:
|
{agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/platform.py
RENAMED
|
@@ -254,7 +254,7 @@ async def start_cmd(
|
|
|
254
254
|
raise FileNotFoundError(f"Values file {values_file} not found.")
|
|
255
255
|
|
|
256
256
|
with verbosity(verbose):
|
|
257
|
-
version = importlib.metadata.version("agentstack-cli")
|
|
257
|
+
version = importlib.metadata.version("agentstack-cli").replace("rc", "-rc")
|
|
258
258
|
arch = "x86_64" if platform_module.machine().lower() in ["x86_64", "amd64"] else "aarch64"
|
|
259
259
|
Configuration().home.mkdir(exist_ok=True)
|
|
260
260
|
match detect_driver():
|
|
@@ -395,23 +395,36 @@ async def start_cmd(
|
|
|
395
395
|
)
|
|
396
396
|
install_dir = Configuration().home / "wsl" / vm_name
|
|
397
397
|
install_dir.mkdir(parents=True, exist_ok=True)
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
398
|
+
if current_wsl_image.startswith("http://") or current_wsl_image.startswith("https://"):
|
|
399
|
+
with tempfile.NamedTemporaryFile(suffix=".wsl", delete=True, delete_on_close=False) as tmp:
|
|
400
|
+
with console.status("Downloading WSL distribution...", spinner="dots"):
|
|
401
|
+
async with httpx.AsyncClient(follow_redirects=True) as client:
|
|
402
|
+
async with client.stream("GET", current_wsl_image) as response:
|
|
403
|
+
response.raise_for_status()
|
|
404
|
+
async for chunk in response.aiter_bytes():
|
|
405
|
+
tmp.write(chunk)
|
|
406
|
+
tmp.close()
|
|
407
|
+
await run_command(
|
|
408
|
+
["wsl.exe", "--import", vm_name, str(install_dir), tmp.name],
|
|
409
|
+
"Importing WSL distribution",
|
|
410
|
+
)
|
|
411
|
+
else:
|
|
412
|
+
await run_command(
|
|
413
|
+
["wsl.exe", "--import", vm_name, str(install_dir), current_wsl_image],
|
|
414
|
+
"Importing WSL distribution",
|
|
415
|
+
)
|
|
413
416
|
await run_command(["wsl.exe", "--terminate", vm_name], "Restarting Agent Stack VM")
|
|
414
417
|
await run_in_vm(vm_name, ["/usr/bin/setsid", "-f", "/usr/bin/sleep", "infinity"], "Ensuring persistence of Agent Stack VM")
|
|
418
|
+
await run_in_vm(
|
|
419
|
+
vm_name,
|
|
420
|
+
[
|
|
421
|
+
"bash",
|
|
422
|
+
"-c",
|
|
423
|
+
"rm /etc/resolv.conf && cp /etc/resolv.conf-override /etc/resolv.conf && chattr +i /etc/resolv.conf",
|
|
424
|
+
],
|
|
425
|
+
"Setting up DNS configuration",
|
|
426
|
+
check=False,
|
|
427
|
+
)
|
|
415
428
|
await run_in_vm(
|
|
416
429
|
vm_name,
|
|
417
430
|
[
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentstack_cli-0.7.0rc12 → agentstack_cli-0.7.0rc14}/src/agentstack_cli/commands/connector.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
|