export function formatTokenForLog(value: string, chunkSize = 48) {
  const normalized = value.trim();
  if (!normalized) return '(empty)';
  const chunks: string[] = [];
  for (let index = 0; index < normalized.length; index += chunkSize) {
    chunks.push(normalized.slice(index, index + chunkSize));
  }
  return chunks.join('\n');
}
