Function
getBoundaryTool
(
boundary: CompletionBoundary | null,
)
Source from the content-addressed store, hash-verified
| 164 | } |
| 165 | |
| 166 | function getBoundaryTool( |
| 167 | boundary: CompletionBoundary | null, |
| 168 | ): string | undefined { |
| 169 | if (!boundary) return undefined |
| 170 | switch (boundary.type) { |
| 171 | case 'bash': |
| 172 | return 'Bash' |
| 173 | case 'edit': |
| 174 | case 'denied_tool': |
| 175 | return boundary.toolName |
| 176 | case 'complete': |
| 177 | return undefined |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | function getBoundaryDetail( |
| 182 | boundary: CompletionBoundary | null, |
Tested by
no test coverage detected