MCPcopy Create free account
hub / github.com/dot-agent/nextpy / read

Method read

nextpy/ai/engine/library/_shell.py:124–130  ·  view source on GitHub ↗

Read the next chunk of output from the shell.

(self)

Source from the content-addressed store, hash-verified

122 self._current_output = ""
123
124 def read(self):
125 """ Read the next chunk of output from the shell.
126 """
127 new_text = os.read(self.master_fd, 10240).decode()
128 self._current_output += new_text
129 if self._current_output.endswith('autosh$ '):
130 self.command_finished.set()
131
132 async def __call__(self, command):
133 ''' Send a command to the shell and return the output.

Callers 15

handle_uploadMethod · 0.80
find_replaceFunction · 0.80
indexFunction · 0.80
handle_uploadMethod · 0.80
runMethod · 0.80
from_fileMethod · 0.80
loadFunction · 0.80
_program.pyFile · 0.80
loadFunction · 0.80
__call__Method · 0.80
__init__Method · 0.80

Calls 2

decodeMethod · 0.45
setMethod · 0.45

Tested by 3

handle_uploadMethod · 0.64