Refactor public API around environments
This commit is contained in:
parent
57dae52cc2
commit
5d5243df23
41 changed files with 1301 additions and 459 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
PUBLIC_CLI_COMMANDS = ("mcp", "run", "doctor", "demo")
|
||||
PUBLIC_CLI_COMMANDS = ("demo", "doctor", "env", "mcp", "run")
|
||||
PUBLIC_CLI_DEMO_SUBCOMMANDS = ("ollama",)
|
||||
PUBLIC_CLI_ENV_SUBCOMMANDS = ("inspect", "list", "pull", "prune")
|
||||
PUBLIC_CLI_RUN_FLAGS = (
|
||||
"--profile",
|
||||
"--vcpu-count",
|
||||
"--mem-mib",
|
||||
"--timeout-seconds",
|
||||
|
|
@ -18,8 +18,11 @@ PUBLIC_SDK_METHODS = (
|
|||
"create_vm",
|
||||
"delete_vm",
|
||||
"exec_vm",
|
||||
"list_profiles",
|
||||
"inspect_environment",
|
||||
"list_environments",
|
||||
"network_info_vm",
|
||||
"prune_environments",
|
||||
"pull_environment",
|
||||
"reap_expired",
|
||||
"run_in_vm",
|
||||
"start_vm",
|
||||
|
|
@ -28,14 +31,14 @@ PUBLIC_SDK_METHODS = (
|
|||
)
|
||||
|
||||
PUBLIC_MCP_TOOLS = (
|
||||
"vm_run",
|
||||
"vm_list_profiles",
|
||||
"vm_create",
|
||||
"vm_start",
|
||||
"vm_exec",
|
||||
"vm_stop",
|
||||
"vm_delete",
|
||||
"vm_status",
|
||||
"vm_exec",
|
||||
"vm_list_environments",
|
||||
"vm_network_info",
|
||||
"vm_reap_expired",
|
||||
"vm_run",
|
||||
"vm_start",
|
||||
"vm_status",
|
||||
"vm_stop",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue