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

Function sdkCompatToolName

src/utils/messages/systemInit.ts:23–25  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

21// but emitting the new name in init/result events broke SDK consumers on a
22// patch-level release. Keep emitting 'Task' until the next minor.
23export function sdkCompatToolName(name: string): string {
24 return name === AGENT_TOOL_NAME ? LEGACY_AGENT_TOOL_NAME : name
25}
26
27type CommandLike = { name: string; userInvocable?: boolean }
28

Callers 2

wrappedCanUseToolMethod · 0.85
buildSystemInitMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected