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

Function createSystemMessage

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

Source from the content-addressed store, hash-verified

4335}
4336
4337export function createSystemMessage(
4338 content: string,
4339 level: SystemMessageLevel,
4340 toolUseID?: string,
4341 preventContinuation?: boolean,
4342): SystemInformationalMessage {
4343 return {
4344 type: 'system',
4345 subtype: 'informational',
4346 content,
4347 isMeta: false,
4348 timestamp: new Date().toISOString(),
4349 uuid: randomUUID(),
4350 toolUseID,
4351 level,
4352 ...(preventContinuation && { preventContinuation }),
4353 }
4354}
4355
4356export function createPermissionRetryMessage(
4357 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