Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions examples/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
EnvVariable,
ImageContentBlock,
Implementation,
KillTerminalCommandResponse,
KillTerminalResponse,
PermissionOption,
ReadTextFileResponse,
ReleaseTerminalResponse,
Expand Down Expand Up @@ -86,9 +86,7 @@ async def wait_for_terminal_exit(
) -> WaitForTerminalExitResponse:
raise RequestError.method_not_found("terminal/wait_for_exit")

async def kill_terminal(
self, session_id: str, terminal_id: str, **kwargs: Any
) -> KillTerminalCommandResponse | None:
async def kill_terminal(self, session_id: str, terminal_id: str, **kwargs: Any) -> KillTerminalResponse | None:
raise RequestError.method_not_found("terminal/kill")

async def session_update(
Expand Down
12 changes: 5 additions & 7 deletions examples/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
EmbeddedResourceContentBlock,
EnvVariable,
FileEditToolCallContent,
FileSystemCapability,
KillTerminalCommandResponse,
FileSystemCapabilities,
KillTerminalResponse,
PermissionOption,
ReadTextFileResponse,
ReleaseTerminalResponse,
Expand Down Expand Up @@ -183,11 +183,9 @@ async def wait_for_terminal_exit(
print(f"[Client] waitForTerminalExit: {session_id} {terminal_id}")
return WaitForTerminalExitResponse()

async def kill_terminal(
self, session_id: str, terminal_id: str, **kwargs: Any
) -> KillTerminalCommandResponse | None:
async def kill_terminal(self, session_id: str, terminal_id: str, **kwargs: Any) -> KillTerminalResponse | None:
print(f"[Client] killTerminal: {session_id} {terminal_id}")
return KillTerminalCommandResponse()
return KillTerminalResponse()


def _pick_preferred_option(options: Iterable[PermissionOption]) -> PermissionOption | None:
Expand Down Expand Up @@ -320,7 +318,7 @@ async def run(argv: list[str]) -> int: # noqa: C901
init_resp = await conn.initialize(
protocol_version=PROTOCOL_VERSION,
client_capabilities=ClientCapabilities(
fs=FileSystemCapability(read_text_file=True, write_text_file=True),
fs=FileSystemCapabilities(read_text_file=True, write_text_file=True),
terminal=True,
),
)
Expand Down
2 changes: 1 addition & 1 deletion schema/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
refs/tags/v0.10.8
refs/tags/v0.11.2
1 change: 1 addition & 0 deletions schema/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"authenticate": "authenticate",
"initialize": "initialize",
"session_cancel": "session/cancel",
"session_close": "session/close",
"session_fork": "session/fork",
"session_list": "session/list",
"session_load": "session/load",
Expand Down
Loading
Loading