MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / heading

Function heading

packages/baseai/src/utils/heading.ts:3–21  ·  view source on GitHub ↗
({
	text,
	sub,
	dim,
	green
}: {
	text: string;
	sub?: string;
	dim?: boolean;
	green?: boolean;
})

Source from the content-addressed store, hash-verified

1import color from 'picocolors';
2
3export function heading({
4 text,
5 sub,
6 dim,
7 green
8}: {
9 text: string;
10 sub?: string;
11 dim?: boolean;
12 green?: boolean;
13}) {
14 if (green) {
15 return `${color.bgGreen(color.black(` ${text} `))} ${sub && sub}`;
16 }
17 if (dim) {
18 return `${color.bgBlack(color.white(` ${text} `))} ${sub && sub}`;
19 }
20 return `${color.bold(color.bgCyan(color.black(` ${text} `)))} ${sub && sub}`;
21}

Callers 15

deploySingleDocumentFunction · 0.90
deployFunction · 0.90
deploySingleMemoryFunction · 0.90
displayIntroFunction · 0.90
debugModeFunction · 0.90
setLocalEmbeddingsConfigFunction · 0.90
createPipeFunction · 0.90
authFunction · 0.90
listMemoryFunction · 0.90
embedDocFunction · 0.90
embedMemoryFunction · 0.90
retrieveMemoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected