MCPcopy
hub / github.com/codeaashu/claude-code / getBoundaryTool

Function getBoundaryTool

src/services/PromptSuggestion/speculation.ts:166–179  ·  view source on GitHub ↗
(
  boundary: CompletionBoundary | null,
)

Source from the content-addressed store, hash-verified

164}
165
166function 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
181function getBoundaryDetail(
182 boundary: CompletionBoundary | null,

Callers 1

logSpeculationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected