MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isAdvisorBlock

Function isAdvisorBlock

source code/utils/advisor.ts:38–46  ·  view source on GitHub ↗
(param: {
  type: string
  name?: string
})

Source from the content-addressed store, hash-verified

36export type AdvisorBlock = AdvisorServerToolUseBlock | AdvisorToolResultBlock
37
38export function isAdvisorBlock(param: {
39 type: string
40 name?: string
41}): param is AdvisorBlock {
42 return (
43 param.type === 'advisor_tool_result' ||
44 (param.type === 'server_tool_use' && param.name === 'advisor')
45 )
46}
47
48type AdvisorConfig = {
49 enabled?: boolean

Callers 3

AssistantMessageBlockFunction · 0.85
MessagesImplFunction · 0.85
stripAdvisorBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected