GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/costHook.ts at main · edwardZhang/claude-code-source-code Expand file tree/ Copy pathcostHook.tsMore file actions 22 lines (20 loc) · 617 Bytes / Copy pathcostHook.tsFile metadata and controls22 lines (20 loc) · 617 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import { useEffect } from 'react' import { formatTotalCost, saveCurrentSessionCosts } from './cost-tracker.js' import { hasConsoleBillingAccess } from './utils/billing.js' import type { FpsMetrics } from './utils/fpsTracker.js' export function useCostSummary( getFpsMetrics?: () => FpsMetrics | undefined, ): void { useEffect(() => { const f = () => { if (hasConsoleBillingAccess()) { process.stdout.write('\n' + formatTotalCost() + '\n') } saveCurrentSessionCosts(getFpsMetrics?.()) } process.on('exit', f) return () => { process.off('exit', f) } }, []) } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |