MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / head

Function head

src/context/approach-diff.ts:78–80  ·  view source on GitHub ↗
(text: string, max = 160)

Source from the content-addressed store, hash-verified

76const isMultiline = (t: string): boolean => t.split('\n').filter(l => l.trim()).length >= 3;
77
78function head(text: string, max = 160): string {
79 return text.replace(/\s+/g, ' ').trim().slice(0, max);
80}
81
82function tag(m: ApproachMatch): string {
83 const base = m.kind === 'episode' ? '🎯 task' : m.kind === 'fact' ? '🧠 fact' : m.kind === 'receipt' ? '🧾 receipt' : `📝 ${m.detail ?? 'worklog'}`;

Callers 2

renderTimelineFunction · 0.85
renderApproachDiffsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected