MCPcopy
hub / github.com/codeaashu/claude-code / joinPromptValues

Function joinPromptValues

src/cli/print.ts:428–434  ·  view source on GitHub ↗
(values: PromptValue[])

Source from the content-addressed store, hash-verified

426 * to blocks and concatenated.
427 */
428export function joinPromptValues(values: PromptValue[]): PromptValue {
429 if (values.length === 1) return values[0]!
430 if (values.every(v => typeof v === 'string')) {
431 return values.join('\n')
432 }
433 return values.flatMap(toBlocks)
434}
435
436/**
437 * 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