(text: string)
| 41 | |
| 42 | /** Rough token estimate — ~4 chars/token, the usual heuristic; good enough for a budget gate. */ |
| 43 | export function estimateTokens(text: string): number { |
| 44 | return Math.ceil(text.length / 4); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Pick the facts to inject. `facts` are expected newest-first (as the store returns them). |
no outgoing calls
no test coverage detected