MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / buildArray

Function buildArray

common/src/util/array.ts:10–12  ·  view source on GitHub ↗
(...params: FalseyValueArray<T>[])

Source from the content-addressed store, hash-verified

8type FalseyValueArray<T> = T | Falsey | FalseyValueArray<T>[]
9
10export function buildArray<T>(...params: FalseyValueArray<T>[]) {
11 return compact(flattenDeep(params)) as T[]
12}
13
14export function groupConsecutive<T, U>(xs: T[], key: (x: T) => U) {
15 if (!xs.length) {

Callers 15

runAgentStepFunction · 0.90
loopAgentStepsFunction · 0.90
buildToolDescriptionFunction · 0.90
processStreamFunction · 0.90
add-subgoal.tsFile · 0.90
getSearchSystemPromptFunction · 0.90
buildUserMessageContentFunction · 0.90
castAssistantMessageFunction · 0.90
getEditedFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected