( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
| 4433 | } |
| 4434 | |
| 4435 | export function createSystemMessage( |
| 4436 | content: string, |
| 4437 | level: SystemMessageLevel, |
| 4438 | toolUseID?: string, |
| 4439 | preventContinuation?: boolean, |
| 4440 | ): SystemInformationalMessage { |
| 4441 | return { |
| 4442 | type: 'system', |
| 4443 | subtype: 'informational', |
| 4444 | content, |
| 4445 | isMeta: false, |
| 4446 | timestamp: new Date().toISOString(), |
| 4447 | uuid: randomUUID(), |
| 4448 | toolUseID, |
| 4449 | level, |
| 4450 | ...(preventContinuation && { preventContinuation }), |
| 4451 | } |
| 4452 | } |
| 4453 | |
| 4454 | export function createPermissionRetryMessage( |
| 4455 | commands: string[], |
no test coverage detected