Ship trust-first CLI and runtime defaults
This commit is contained in:
parent
fb718af154
commit
5d63e4c16e
26 changed files with 894 additions and 134 deletions
|
|
@ -52,9 +52,8 @@ def _stepwise_model_response(payload: dict[str, Any], step: int) -> dict[str, An
|
|||
{
|
||||
"environment": "debian:12",
|
||||
"command": "printf 'true\\n'",
|
||||
"vcpu_count": 1,
|
||||
"mem_mib": 512,
|
||||
"network": True,
|
||||
"allow_host_compat": True,
|
||||
}
|
||||
),
|
||||
},
|
||||
|
|
@ -119,9 +118,8 @@ def test_run_ollama_tool_demo_accepts_legacy_profile_and_string_network(
|
|||
{
|
||||
"profile": "debian:12",
|
||||
"command": "printf 'true\\n'",
|
||||
"vcpu_count": 1,
|
||||
"mem_mib": 512,
|
||||
"network": "true",
|
||||
"allow_host_compat": True,
|
||||
}
|
||||
),
|
||||
},
|
||||
|
|
@ -224,8 +222,7 @@ def test_run_ollama_tool_demo_resolves_vm_id_placeholder(
|
|||
"arguments": json.dumps(
|
||||
{
|
||||
"environment": "debian:12",
|
||||
"vcpu_count": "2",
|
||||
"mem_mib": "2048",
|
||||
"allow_host_compat": True,
|
||||
}
|
||||
),
|
||||
},
|
||||
|
|
@ -280,6 +277,7 @@ def test_dispatch_tool_call_vm_exec_autostarts_created_vm(tmp_path: Path) -> Non
|
|||
vcpu_count=1,
|
||||
mem_mib=512,
|
||||
ttl_seconds=60,
|
||||
allow_host_compat=True,
|
||||
)
|
||||
vm_id = str(created["vm_id"])
|
||||
|
||||
|
|
@ -458,6 +456,7 @@ def test_dispatch_tool_call_coverage(tmp_path: Path) -> None:
|
|||
"mem_mib": "512",
|
||||
"ttl_seconds": "60",
|
||||
"network": False,
|
||||
"allow_host_compat": True,
|
||||
},
|
||||
)
|
||||
vm_id = str(created["vm_id"])
|
||||
|
|
@ -477,10 +476,9 @@ def test_dispatch_tool_call_coverage(tmp_path: Path) -> None:
|
|||
{
|
||||
"environment": "debian:12-base",
|
||||
"command": "printf 'true\\n'",
|
||||
"vcpu_count": "1",
|
||||
"mem_mib": "512",
|
||||
"timeout_seconds": "30",
|
||||
"network": False,
|
||||
"allow_host_compat": True,
|
||||
},
|
||||
)
|
||||
assert int(executed_run["exit_code"]) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue