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

Function to_short_execution_log

src/model/external_model.py:60–70  ·  view source on GitHub ↗
(history_entries, running_script_ids=None)

Source from the content-addressed store, hash-verified

58
59
60def to_short_execution_log(history_entries, running_script_ids=None):
61 if running_script_ids is None:
62 running_script_ids = []
63
64 result = []
65 for entry in history_entries:
66 running = entry.id in running_script_ids
67 external_entry = _translate_history_entry(entry, running)
68 result.append(external_entry)
69
70 return result
71
72
73def to_long_execution_log(entry, log, running):

Callers 7

test_running_statusMethod · 0.90
getMethod · 0.90

Calls 2

_translate_history_entryFunction · 0.85
appendMethod · 0.80