MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / formatLine

Function formatLine

packages/baseai/src/utils/memory/generate-embeddings.ts:178–186  ·  view source on GitHub ↗
(
		label: string,
		value: string,
		icon: string,
		valueColor: (s: string) => string
	)

Source from the content-addressed store, hash-verified

176 const maxLabelLength = 'Total embeddings generated:'.length;
177
178 const formatLine = (
179 label: string,
180 value: string,
181 icon: string,
182 valueColor: (s: string) => string
183 ) => {
184 const paddedLabel = label.padEnd(maxLabelLength);
185 return `${icon} ${paddedLabel} ${valueColor(value)}`;
186 };
187
188 const summary = [
189 color.bold(color.cyan('Embedding Generation Summary:')),

Callers 1

generateEmbeddingSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected