MCPcopy Index your code
hub / github.com/codeaashu/claude-code / prepareUserContent

Function prepareUserContent

src/utils/messages.ts:525–543  ·  view source on GitHub ↗
({
  inputString,
  precedingInputBlocks,
}: {
  inputString: string
  precedingInputBlocks: ContentBlockParam[]
})

Source from the content-addressed store, hash-verified

523}
524
525export function prepareUserContent({
526 inputString,
527 precedingInputBlocks,
528}: {
529 inputString: string
530 precedingInputBlocks: ContentBlockParam[]
531}): string | ContentBlockParam[] {
532 if (precedingInputBlocks.length === 0) {
533 return inputString
534 }
535
536 return [
537 ...precedingInputBlocks,
538 {
539 text: inputString,
540 type: 'text',
541 },
542 ]
543}
544
545export function createUserInterruptionMessage({
546 toolUse = false,

Callers 5

processSlashCommandFunction · 0.85
onDoneFunction · 0.85
processBashCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected