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

Function getBoundaryDetail

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

Source from the content-addressed store, hash-verified

179}
180
181function 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
197function isUserMessageWithArrayContent(
198 m: Message,

Callers 1

logSpeculationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected