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

Function generateRequestId

src/utils/agentId.ts:62–68  ·  view source on GitHub ↗
(
  requestType: string,
  agentId: string,
)

Source from the content-addressed store, hash-verified

60 * Formats a request ID in the format `{requestType}-{timestamp}@{agentId}`.
61 */
62export function generateRequestId(
63 requestType: string,
64 agentId: string,
65): string {
66 const timestamp = Date.now()
67 return `${requestType}-${timestamp}@${agentId}`
68}
69
70/**
71 * Parses a request ID into its components.

Callers 3

handleShutdownRequestFunction · 0.50
callFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected