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

Function getAdvisorUsage

src/utils/advisor.ts:115–128  ·  view source on GitHub ↗
(
  usage: BetaUsage,
)

Source from the content-addressed store, hash-verified

113}
114
115export function getAdvisorUsage(
116 usage: BetaUsage,
117): Array<BetaUsage & { model: string }> {
118 const iterations = usage.iterations as
119 | Array<{ type: string }>
120 | null
121 | undefined
122 if (!iterations) {
123 return []
124 }
125 return iterations.filter(
126 it => it.type === 'advisor_message',
127 ) as unknown as Array<BetaUsage & { model: string }>
128}
129
130export const ADVISOR_TOOL_INSTRUCTIONS = `# Advisor Tool
131

Callers 1

addToTotalSessionCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected