MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / excerpt

Function excerpt

tests/windows/test_daemon_stability.py:111–116  ·  view source on GitHub ↗
(text, limit=EXCERPT_CHARS)

Source from the content-addressed store, hash-verified

109
110
111def excerpt(text, limit=EXCERPT_CHARS):
112 if isinstance(text, bytes):
113 text = text.decode("utf-8", "replace")
114 if len(text) <= limit:
115 return text
116 return "...(%d chars elided)...\n%s" % (len(text) - limit, text[-limit:])
117
118
119def kill_pid(pid):

Callers 9

section_paramsFunction · 0.85
section_hook_fail_openFunction · 0.85
section_crash_recoveryFunction · 0.85
section_churn_stabilityFunction · 0.85
section_cold_stormFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected