|
33 | 33 | EmbeddedResourceContentBlock, |
34 | 34 | EnvVariable, |
35 | 35 | FileEditToolCallContent, |
36 | | - FileSystemCapability, |
37 | | - KillTerminalCommandResponse, |
| 36 | + FileSystemCapabilities, |
| 37 | + KillTerminalResponse, |
38 | 38 | PermissionOption, |
39 | 39 | ReadTextFileResponse, |
40 | 40 | ReleaseTerminalResponse, |
@@ -183,11 +183,9 @@ async def wait_for_terminal_exit( |
183 | 183 | print(f"[Client] waitForTerminalExit: {session_id} {terminal_id}") |
184 | 184 | return WaitForTerminalExitResponse() |
185 | 185 |
|
186 | | - async def kill_terminal( |
187 | | - self, session_id: str, terminal_id: str, **kwargs: Any |
188 | | - ) -> KillTerminalCommandResponse | None: |
| 186 | + async def kill_terminal(self, session_id: str, terminal_id: str, **kwargs: Any) -> KillTerminalResponse | None: |
189 | 187 | print(f"[Client] killTerminal: {session_id} {terminal_id}") |
190 | | - return KillTerminalCommandResponse() |
| 188 | + return KillTerminalResponse() |
191 | 189 |
|
192 | 190 |
|
193 | 191 | def _pick_preferred_option(options: Iterable[PermissionOption]) -> PermissionOption | None: |
@@ -320,7 +318,7 @@ async def run(argv: list[str]) -> int: # noqa: C901 |
320 | 318 | init_resp = await conn.initialize( |
321 | 319 | protocol_version=PROTOCOL_VERSION, |
322 | 320 | client_capabilities=ClientCapabilities( |
323 | | - fs=FileSystemCapability(read_text_file=True, write_text_file=True), |
| 321 | + fs=FileSystemCapabilities(read_text_file=True, write_text_file=True), |
324 | 322 | terminal=True, |
325 | 323 | ), |
326 | 324 | ) |
|
0 commit comments