expose shell metadata in call responses

This commit is contained in:
lda
2026-08-30 03:05:58 +07:00 Verified
parent cf0ec7b403
commit 2587b07b4a
6 changed files with 90 additions and 6 deletions
+16
View File
@@ -12,6 +12,8 @@ CallEventKind = Literal[
"error",
]
ShellStatus = Literal["ready", "running", "error"]
@dataclass
class CallEvent:
@@ -55,3 +57,17 @@ class CallResponse:
collapsed: bool
result: CallResult
events: list[CallEvent]
shell: ShellInfo
@dataclass
class ShellInfo:
"""Frontend-safe snapshot describing one persistent shell."""
shell_id: str
name: str
status: ShellStatus
execution_count: int
created_at: str
last_used_at: str | None
capabilities: tuple[str, ...]