MCPcopy Create free account
hub / github.com/codeaashu/claude-code / createProgressMessage

Function createProgressMessage

src/utils/messages.ts:603–620  ·  view source on GitHub ↗
({
  toolUseID,
  parentToolUseID,
  data,
}: {
  toolUseID: string
  parentToolUseID: string
  data: P
})

Source from the content-addressed store, hash-verified

601}
602
603export function createProgressMessage<P extends Progress>({
604 toolUseID,
605 parentToolUseID,
606 data,
607}: {
608 toolUseID: string
609 parentToolUseID: string
610 data: P
611}): ProgressMessage<P> {
612 return {
613 type: 'progress',
614 data,
615 toolUseID,
616 parentToolUseID,
617 uuid: randomUUID(),
618 timestamp: new Date().toISOString(),
619 }
620}
621
622export function createToolResultStopMessage(
623 toolUseID: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected