Pivot persistent APIs to workspaces
Replace the public persistent-sandbox contract with workspace-first naming across CLI, SDK, MCP, payloads, and on-disk state. Rename the task surface to workspace equivalents, switch create-time seeding to `seed_path`, and store records under `workspaces/<workspace_id>/workspace.json` without carrying legacy task aliases or migrating old local task state. Keep `pyro run` and `vm_*` unchanged. Validation covered `uv lock`, focused public-contract/API/CLI/manager tests, `UV_CACHE_DIR=.uv-cache make check`, and `UV_CACHE_DIR=.uv-cache make dist-check`.
This commit is contained in:
parent
f57454bcb4
commit
48b82d8386
13 changed files with 743 additions and 618 deletions
|
|
@ -2,21 +2,21 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
PUBLIC_CLI_COMMANDS = ("demo", "doctor", "env", "mcp", "run", "task")
|
||||
PUBLIC_CLI_COMMANDS = ("demo", "doctor", "env", "mcp", "run", "workspace")
|
||||
PUBLIC_CLI_DEMO_SUBCOMMANDS = ("ollama",)
|
||||
PUBLIC_CLI_ENV_SUBCOMMANDS = ("inspect", "list", "pull", "prune")
|
||||
PUBLIC_CLI_TASK_SUBCOMMANDS = ("create", "delete", "exec", "logs", "status", "sync")
|
||||
PUBLIC_CLI_TASK_SYNC_SUBCOMMANDS = ("push",)
|
||||
PUBLIC_CLI_TASK_CREATE_FLAGS = (
|
||||
PUBLIC_CLI_WORKSPACE_SUBCOMMANDS = ("create", "delete", "exec", "logs", "status", "sync")
|
||||
PUBLIC_CLI_WORKSPACE_SYNC_SUBCOMMANDS = ("push",)
|
||||
PUBLIC_CLI_WORKSPACE_CREATE_FLAGS = (
|
||||
"--vcpu-count",
|
||||
"--mem-mib",
|
||||
"--ttl-seconds",
|
||||
"--network",
|
||||
"--allow-host-compat",
|
||||
"--source-path",
|
||||
"--seed-path",
|
||||
"--json",
|
||||
)
|
||||
PUBLIC_CLI_TASK_SYNC_PUSH_FLAGS = ("--dest", "--json")
|
||||
PUBLIC_CLI_WORKSPACE_SYNC_PUSH_FLAGS = ("--dest", "--json")
|
||||
PUBLIC_CLI_RUN_FLAGS = (
|
||||
"--vcpu-count",
|
||||
"--mem-mib",
|
||||
|
|
@ -29,24 +29,24 @@ PUBLIC_CLI_RUN_FLAGS = (
|
|||
|
||||
PUBLIC_SDK_METHODS = (
|
||||
"create_server",
|
||||
"create_task",
|
||||
"create_vm",
|
||||
"delete_task",
|
||||
"create_workspace",
|
||||
"delete_vm",
|
||||
"exec_task",
|
||||
"delete_workspace",
|
||||
"exec_vm",
|
||||
"exec_workspace",
|
||||
"inspect_environment",
|
||||
"list_environments",
|
||||
"logs_task",
|
||||
"logs_workspace",
|
||||
"network_info_vm",
|
||||
"prune_environments",
|
||||
"pull_environment",
|
||||
"push_task_sync",
|
||||
"push_workspace_sync",
|
||||
"reap_expired",
|
||||
"run_in_vm",
|
||||
"start_vm",
|
||||
"status_task",
|
||||
"status_vm",
|
||||
"status_workspace",
|
||||
"stop_vm",
|
||||
)
|
||||
|
||||
|
|
@ -61,10 +61,10 @@ PUBLIC_MCP_TOOLS = (
|
|||
"vm_start",
|
||||
"vm_status",
|
||||
"vm_stop",
|
||||
"task_create",
|
||||
"task_delete",
|
||||
"task_exec",
|
||||
"task_logs",
|
||||
"task_status",
|
||||
"task_sync_push",
|
||||
"workspace_create",
|
||||
"workspace_delete",
|
||||
"workspace_exec",
|
||||
"workspace_logs",
|
||||
"workspace_status",
|
||||
"workspace_sync_push",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue