MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / createSystemMessage

Function createSystemMessage

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

Source from the content-addressed store, hash-verified

4770}
4771
4772export function createSystemMessage(
4773 content: string,
4774 level: SystemMessageLevel,
4775 toolUseID?: string,
4776 preventContinuation?: boolean,
4777): SystemInformationalMessage {
4778 return {
4779 type: 'system',
4780 subtype: 'informational',
4781 content,
4782 isMeta: false,
4783 timestamp: new Date().toISOString(),
4784 uuid: randomUUID(),
4785 toolUseID,
4786 level,
4787 ...(preventContinuation && { preventContinuation }),
4788 }
4789}
4790
4791export function createPermissionRetryMessage(
4792 commands: string[],

Callers 15

queryLoopFunction · 0.85
runFunction · 0.85
UltraplanChoiceDialogFunction · 0.85
processSlashCommandFunction · 0.85
processUserInputFunction · 0.85
onSelectFunction · 0.85
REPLFunction · 0.85
handleStopHooksFunction · 0.85
handleStateChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected