picoclaw/pkg/channels/feishu
Hoshina fa1cb9cc74 fix(feishu): address PR #1000 review comments from @xiaket
- Consolidate extractImageKey/extractFileKey/extractFileName into shared
  extractJSONStringField helper to reduce code duplication
- Move mentionPlaceholderRegex to package-level position after imports
- Rename feishuCfg field to config for clarity within FeishuChannel
- Replace @_user_1 heuristic with GET /open-apis/bot/v3/info API call
  at startup for reliable bot @mention detection
- Fix double close on file handle in downloadResource by removing defer
  and using explicit close in both success and error paths
- Add unit tests for common.go and feishu_64.go helpers (53 test cases)
2026-03-03 16:44:24 +08:00
..
common.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
common_test.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
feishu_32.go fix(feishu): address review findings 2026-03-03 01:27:46 +08:00
feishu_64.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
feishu_64_test.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
init.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00