MCPcopy
hub / github.com/codeaashu/claude-code / createSystemMessage

Function createSystemMessage

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

Source from the content-addressed store, hash-verified

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