picoclaw/pkg
Together f12c337965 Remove duplicate truncate functions, reuse utils.Truncate
Multiple packages had their own private truncate implementations:
- channels/telegram.go: truncateString (byte-based, no "...")
- channels/dingtalk.go: truncateStringDingTalk (byte-based, no "...")
- voice/transcriber.go: truncateText (byte-based, with "...")

All three are functionally equivalent to the existing utils.Truncate,
which already handles rune-safe truncation and appends "..." correctly.

Replace all private copies with utils.Truncate and delete the dead code.
2026-02-12 00:46:48 +08:00
..
agent refactor(tools): remove duplicate truncate functions and add docs 2026-02-11 20:31:41 +08:00
bus * First commit 2026-02-09 19:20:19 +08:00
channels Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
config Merge branch 'pr-12' 2026-02-11 19:47:11 +08:00
cron refactor(agent): improve code quality and restore summarization 2026-02-11 20:31:41 +08:00
heartbeat * First commit 2026-02-09 19:20:19 +08:00
logger * First commit 2026-02-09 19:20:19 +08:00
providers Fix: prioritize explicit provider prefixes and update max_tokens schema 2026-02-11 22:49:47 +08:00
session fix(cron): add one-time reminders and fix data paths to workspace 2026-02-11 20:31:41 +08:00
skills Add memory system, dynamic tool loading, and fix logging issues 2026-02-11 00:14:33 +08:00
tools refactor(tools): remove duplicate truncate functions and add docs 2026-02-11 20:31:41 +08:00
utils refactor(agent): improve code quality and restore summarization 2026-02-11 20:31:41 +08:00
voice Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00