picoclaw/pkg/channels
zeo 1e17bac9f0 fix: correct index bug in extractCodeBlocks and extractInlineCodes
The previous implementation used len(codes)-1 in ReplaceAllStringFunc,
which caused all placeholders to point to the same (last) index.
This resulted in only the last code block being displayed correctly
when multiple code blocks were present in a message.

Now using a proper counter variable that increments for each match,
ensuring each code block gets a unique placeholder index.
2026-02-13 21:38:14 +08:00
..
base.go feat: add Telegram proxy support and flexible allow_from matching 2026-02-12 22:38:47 +08:00
dingtalk.go misc: fmt code 2026-02-13 17:51:47 +08:00
discord.go refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
feishu.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00
maixcam.go * First commit 2026-02-09 19:20:19 +08:00
manager.go refactor(tools): extract shared logic for internal channels and tool definitions 2026-02-13 15:05:16 +08:00
qq.go add QQ channel support 2026-02-11 00:00:53 +08:00
slack.go misc: fmt code 2026-02-13 17:51:47 +08:00
slack_test.go refactor(channels): consolidate media handling and improve resource cleanup 2026-02-12 12:46:28 +08:00
telegram.go fix: correct index bug in extractCodeBlocks and extractInlineCodes 2026-02-13 21:38:14 +08:00
whatsapp.go Remove duplicate truncate functions, reuse utils.Truncate 2026-02-12 00:46:48 +08:00