Commit Graph
9 Commits
Author SHA1 Message Date
翅膀 0978c6c310 fix(feishu): authenticate and dedupe callbacks
Authenticate signed or token-verified callbacks before dispatching
commands. Decode encrypted envelopes and handle card actions using
the correct fields without claiming irrelevant chat events.
2026-10-23 23:23:21 +08:00
翅膀 e850ec3c14 fix(feishu): neutralize untrusted mentions
Forge text is untrusted and can contain at-all tags.
Neutralize mentions in card bodies and footers before rendering.
2026-10-23 23:23:19 +08:00
翅膀 4c1ec472af fix(feishu): use the card update endpoint
Delayed card updates use the card update endpoint; the config
endpoint cannot update an interaction response.
2026-10-23 23:23:18 +08:00
翅膀 832718a238 fix(feishu): refresh and evict tokens safely
Separate app token caches, stop reusing refused tokens and share
refreshes. Cache failures briefly and keep valid tokens in memory
when a best-effort KV cache write fails.
2026-10-23 23:23:17 +08:00
翅膀 1b814b4dfa fix(feishu): retry sends with stable uuids
An unreadable response does not prove a send failed.
Reuse the same uuid for retries so recovering the result cannot
create a second Feishu message.
2026-10-23 23:23:16 +08:00
翅膀 fa3b090dd6 fix(feishu): classify retryable api failures
Business error codes can be transient even in HTTP 200 responses.
Classify token and rate-limit errors for retry and defer long waits.
2026-10-23 23:23:14 +08:00
翅膀 061e045a39 fix(feishu): bound individual api requests
Bound individual platform calls so they cannot outlive the lock
protecting a message update or stall a whole delivery invocation.
2026-10-23 23:23:13 +08:00
github-actions[bot] 1375db9a20 chore: auto-fix lint & formatting [skip ci] 2026-08-26 16:39:02 +00:00
RhenCloud 4b99f6d33d feat(feishu): add Feishu inbound webhook, /gh commands and card actions
- add feishu_links D1 table and link store helpers
- implement X-Lark-Signature verification, url_verification, /gh login|logout|comment|merge|close and card.action.trigger Merge/Close
- render interactive cards with clickable title link, inline links and callback buttons (no whole-card card_link)
- bind Feishu account in OAuth callback
- document event subscription and required scopes
2026-08-27 00:07:05 +08:00