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

Function getSystemMessage

cli/src/utils/message-history.ts:36–52  ·  view source on GitHub ↗
(
  content: string | ContentBlock[],
)

Source from the content-addressed store, hash-verified

34}
35
36export function getSystemMessage(
37 content: string | ContentBlock[],
38): ChatMessage {
39 return {
40 id: `sys-${Date.now()}`,
41 variant: 'ai' as const,
42 ...(typeof content === 'string'
43 ? {
44 content,
45 }
46 : {
47 content: '',
48 blocks: content,
49 }),
50 timestamp: formatTimestamp(),
51 }
52}
53
54/**
55 * Get the message history file path

Callers 8

ChatFunction · 0.90
createSkillCommandFunction · 0.90
routeUserPromptFunction · 0.90
postUserMessageFunction · 0.90
handleAdsEnableFunction · 0.90
handleAdsDisableFunction · 0.90
postUserMessageFunction · 0.90

Calls 1

formatTimestampFunction · 0.90

Tested by

no test coverage detected