MCPcopy Index your code
hub / github.com/bugy/script-server / get_history_entries

Method get_history_entries

src/execution/logging.py:183–193  ·  view source on GitHub ↗
(self, user_id, *, system_call=False)

Source from the content-addressed store, hash-verified

181 logger.set_close_callback(lambda: self._write_post_execution_info(log_file_path, exit_code))
182
183 def get_history_entries(self, user_id, *, system_call=False):
184 self._renew_files_cache()
185
186 result = []
187
188 for file in self._ids_to_file_map.values():
189 history_entry = self._extract_history_entry(file)
190 if history_entry is not None and self._can_access_entry(history_entry, user_id, system_call):
191 result.append(history_entry)
192
193 return result
194
195 def find_history_entry(self, execution_id, user_id):
196 self._renew_files_cache()

Calls 4

_renew_files_cacheMethod · 0.95
_can_access_entryMethod · 0.95
appendMethod · 0.80