MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / joinPromptValues

Function joinPromptValues

source code/cli/print.ts:430–436  ·  view source on GitHub ↗
(values: PromptValue[])

Source from the content-addressed store, hash-verified

428 * to blocks and concatenated.
429 */
430export function joinPromptValues(values: PromptValue[]): PromptValue {
431 if (values.length === 1) return values[0]!
432 if (values.every(v => typeof v === 'string')) {
433 return values.join('\n')
434 }
435 return values.flatMap(toBlocks)
436}
437
438/**
439 * Whether `next` can be batched into the same ask() call as `head`. Only

Callers 1

drainCommandQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected