(
normalizedMessages: readonly NormalizedMessage[],
syntheticStreamingToolUseMessages: readonly NormalizedMessage[] = [],
options?: Partial<
Pick<
TranscriptProjectionInput,
'tools' | 'isTranscriptMode' | 'verbose' | 'shouldTruncate'
>
>,
)
| 103 | } |
| 104 | |
| 105 | function buildInput( |
| 106 | normalizedMessages: readonly NormalizedMessage[], |
| 107 | syntheticStreamingToolUseMessages: readonly NormalizedMessage[] = [], |
| 108 | options?: Partial< |
| 109 | Pick< |
| 110 | TranscriptProjectionInput, |
| 111 | 'tools' | 'isTranscriptMode' | 'verbose' | 'shouldTruncate' |
| 112 | > |
| 113 | >, |
| 114 | ): TranscriptProjectionInput { |
| 115 | return { |
| 116 | normalizedMessages, |
| 117 | syntheticStreamingToolUseMessages, |
| 118 | tools: options?.tools ?? NO_TOOLS, |
| 119 | verbose: options?.verbose ?? false, |
| 120 | isTranscriptMode: options?.isTranscriptMode ?? false, |
| 121 | isBriefOnly: false, |
| 122 | shouldTruncate: options?.shouldTruncate ?? false, |
| 123 | fullscreenEnabled: true, |
| 124 | briefToolNames: [], |
| 125 | dropTextToolNames: [], |
| 126 | maxTranscriptMessages: 30, |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | function createBashToolUseTurn(command: string) { |
| 131 | return createAssistantMessage({ |
no outgoing calls
no test coverage detected