mirror of
https://github.com/yuga-hashimoto/openclaw-assistant.git
synced 2026-08-14 07:02:02 +00:00
Replaced memory-allocating substring chunks with offset tracking in `splitTextForTTS`. Also replaced unbounded `lastIndexOf` with a bounded index-tracking method `lastIndexOfBounded` to prevent O(N^2) search regression when delimiters are not found in the chunk. Additionally converted static `listOf` enders to arrays. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>