Function
addLineNumbers
(source: string, lineOffset = 1)
Source from the content-addressed store, hash-verified
| 184 | } |
| 185 | |
| 186 | export const addLineNumbers = (source: string, lineOffset = 1) => { |
| 187 | return source.split('\n').map((line, index) => `${index + lineOffset}: ${line}`).join('\n'); |
| 188 | } |
| 189 | |
| 190 | export const createUIMessage = (text: string, mentions: MentionData[], selectedSearchScopes: SearchScope[], disabledMcpServerIds: string[] = []): CreateUIMessage<SBChatMessage> => { |
| 191 | // Converts applicable mentions into sources. |
Tested by
no test coverage detected