MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isProposedToolName

Function isProposedToolName

cli/src/utils/implementor-helpers.ts:22–23  ·  view source on GitHub ↗
(toolName: ToolContentBlock['toolName'])

Source from the content-addressed store, hash-verified

20] as const
21
22const isProposedToolName = (toolName: ToolContentBlock['toolName']): boolean =>
23 typeof toolName === 'string' && toolName.startsWith('propose_')
24
25const getBaseToolName = (toolName: ToolContentBlock['toolName']): string =>
26 isProposedToolName(toolName) ? toolName.slice('propose_'.length) : toolName

Callers 4

getBaseToolNameFunction · 0.85
hasProposedToolsFunction · 0.85
extractDiffFunction · 0.85
shouldShowEditDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected