Function
getBoundaryDetail
(
boundary: CompletionBoundary | null,
)
Source from the content-addressed store, hash-verified
| 179 | } |
| 180 | |
| 181 | function getBoundaryDetail( |
| 182 | boundary: CompletionBoundary | null, |
| 183 | ): string | undefined { |
| 184 | if (!boundary) return undefined |
| 185 | switch (boundary.type) { |
| 186 | case 'bash': |
| 187 | return boundary.command.slice(0, 200) |
| 188 | case 'edit': |
| 189 | return boundary.filePath |
| 190 | case 'denied_tool': |
| 191 | return boundary.detail |
| 192 | case 'complete': |
| 193 | return undefined |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | function isUserMessageWithArrayContent( |
| 198 | m: Message, |
Tested by
no test coverage detected