(u: CacheUsage)
| 40 | * A change in signature means a new API response arrived — reset the TTL clock. |
| 41 | */ |
| 42 | export function tokenSignature(u: CacheUsage): string { |
| 43 | return `${u.input_tokens}|${u.cache_creation_input_tokens}|${u.cache_read_input_tokens}` |
| 44 | } |
| 45 | |
| 46 | // --------------------------------------------------------------------------- |
| 47 | // State file I/O |
no outgoing calls
no test coverage detected