MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fileMetaLine

Function fileMetaLine

ui/src/lib/file-model.ts:189–195  ·  view source on GitHub ↗
(payload: WireFilePayload)

Source from the content-addressed store, hash-verified

187 * reader has no way to resolve.
188 */
189export function fileMetaLine(payload: WireFilePayload): string {
190 const parts = [payload.file.language, formatBytes(payload.file.size)];
191 parts.push(`${payload.outline.total} ${payload.outline.total === 1 ? 'symbol' : 'symbols'}`);
192 if (payload.file.generated) parts.push('generated');
193 if (payload.file.test) parts.push('test');
194 return parts.join(' · ');
195}
196
197/** The document title / heading for a file: its basename. */
198export function fileTitle(path: string): string {

Callers 1

Calls 3

pushMethod · 0.80
formatBytesFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected