MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createErrorMessage

Function createErrorMessage

cli/src/utils/send-message-helpers.ts:44–49  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

42})
43
44export const createErrorMessage = (content: string): ChatMessage => ({
45 id: `error-${Date.now()}`,
46 variant: 'error',
47 content,
48 timestamp: formatTimestamp(),
49})
50
51export const generateAiMessageId = (): string =>
52 `ai-${Date.now()}-${Math.random().toString(16).slice(2)}`

Callers 1

Calls 1

formatTimestampFunction · 0.90

Tested by

no test coverage detected