MCPcopy Create free account
hub / github.com/WJX20/claude-code / createSystemMessage

Function createSystemMessage

src/utils/messages.ts:4374–4391  ·  view source on GitHub ↗
(
  content: string,
  level: SystemMessageLevel,
  toolUseID?: string,
  preventContinuation?: boolean,
)

Source from the content-addressed store, hash-verified

4372}
4373
4374export function createSystemMessage(
4375 content: string,
4376 level: SystemMessageLevel,
4377 toolUseID?: string,
4378 preventContinuation?: boolean,
4379): SystemInformationalMessage {
4380 return {
4381 type: 'system',
4382 subtype: 'informational',
4383 content,
4384 isMeta: false,
4385 timestamp: new Date().toISOString(),
4386 uuid: randomUUID(),
4387 toolUseID,
4388 level,
4389 ...(preventContinuation && { preventContinuation }),
4390 }
4391}
4392
4393export function createPermissionRetryMessage(
4394 commands: string[],

Callers 13

queryLoopFunction · 0.85
runFunction · 0.85
processSlashCommandFunction · 0.85
processUserInputFunction · 0.85
onSelectFunction · 0.85
REPLFunction · 0.85
handleStopHooksFunction · 0.85
useReplBridgeFunction · 0.85
useRemoteSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected