// Package conversion 內部 utility helpers。 // // 此檔收容跨檔共用的小型 helper(log truncate 等),原本散落在 // mc_token_client.go;Phase 0.8b T3 砍 mc_token_client 整個檔後搬到此獨立檔, // 避免 truncate 隨 mc_token_client.go 一起被砍(仍被 converter_client.go / // faa_client.go 的 log error 拼接使用)。 // // Phase 0.8b conversion (見 ADR-015 §6 / .autoflow/04-architecture/conversion.md §2) package conversion // truncate 把字串截到 max 長度(避免 log 太長)。 func truncate(s string, max int) string { if len(s) <= max { return s } return s[:max] + "...(truncated)" }