Verify visible hello MCP run and add shared control lease
This commit is contained in:
@@ -42,7 +42,8 @@ class McpSession:
|
||||
def events(self, after: int = 0, timeout: float = 0):
|
||||
if after < 0 or timeout < 0 or timeout > 30:
|
||||
raise SessionError('after должен быть неотрицательным, timeout — от 0 до 30 с')
|
||||
return self.call('events', {'after': after, 'timeout': timeout},
|
||||
return self.call('events', {'after': after, 'timeout': timeout,
|
||||
'owner': self.owner},
|
||||
timeout=max(10, timeout + 2))
|
||||
|
||||
def console_tail(self, count: int = 40):
|
||||
@@ -63,15 +64,24 @@ class McpSession:
|
||||
return self.call('clear_owned_breakpoints', {'owner': self.owner})
|
||||
|
||||
def continue_execution(self):
|
||||
return self.call('continue')
|
||||
return self.call('continue', {'owner': self.owner})
|
||||
|
||||
def pause_execution(self):
|
||||
return self.call('pause')
|
||||
return self.call('pause', {'owner': self.owner})
|
||||
|
||||
def step_instruction(self):
|
||||
return self.call('step')
|
||||
return self.call('step', {'owner': self.owner})
|
||||
|
||||
def step_source(self, kind: str = 'into'):
|
||||
if kind not in ('into', 'over', 'out'):
|
||||
raise SessionError('kind должен быть into, over или out')
|
||||
return self.call('source_step', {'kind': kind})
|
||||
return self.call('source_step', {'kind': kind, 'owner': self.owner})
|
||||
|
||||
def claim_control(self):
|
||||
return self.call('claim_control', {'owner': self.owner})
|
||||
|
||||
def renew_control(self):
|
||||
return self.call('renew_control', {'owner': self.owner})
|
||||
|
||||
def release_control(self):
|
||||
return self.call('release_control', {'owner': self.owner})
|
||||
|
||||
Reference in New Issue
Block a user