feat: snapshot/restore checkpoints (SAND-WP-0007)
Add workspace checkpoint API with SnapshotStore, extension hooks on compose-ssh and saas-stub, manager orchestration, CLI/HTTP surface, profile.compose-checkpoint, and docs/tests.
This commit is contained in:
parent
2760ef2373
commit
952cebf2e9
21 changed files with 966 additions and 34 deletions
|
|
@ -170,4 +170,24 @@ class SandboxStatus(BaseModel):
|
|||
created_at: datetime
|
||||
updated_at: datetime
|
||||
ready_at: datetime | None = None
|
||||
destroyed_at: datetime | None = None
|
||||
destroyed_at: datetime | None = None
|
||||
|
||||
|
||||
class SnapshotRestoreRequest(BaseModel):
|
||||
host: str | None = None
|
||||
consumer: Consumer | None = None
|
||||
|
||||
|
||||
class SnapshotRecord(BaseModel):
|
||||
snapshot_id: str
|
||||
sandbox_id: str
|
||||
profile_id: str
|
||||
extension_id: str
|
||||
host: str
|
||||
artifact_path: str = ""
|
||||
handle: dict[str, str] = Field(default_factory=dict)
|
||||
inputs: dict[str, str] = Field(default_factory=dict)
|
||||
consumer: Consumer | None = None
|
||||
name: str | None = None
|
||||
size_bytes: int | None = None
|
||||
created_at: datetime
|
||||
Loading…
Add table
Add a link
Reference in a new issue