hermes-agent/plugins/platforms/teams
Teknium 0fd34e8c5a
fix(teams): cache document/video/audio attachments and classify as DOCUMENT (#44778)
The Teams adapter only handled image/* attachments — documents (the
application/vnd.microsoft.teams.file.download.info consent-free download
payload and any direct-URL non-image attachment) never reached media_urls
at all, so run.py's document-context injection had nothing to surface.
Completes the class-wide sweep from PR #44695 (Signal/Email/SimpleX).

- download.info attachments: fetch the pre-authed SharePoint downloadUrl
  (SSRF-guarded, same guard chain as base.py cache_*_from_url) and route
  through cache_media_bytes
- direct-URL non-image attachments: same fetch + classify path
- skip Teams' text/html message-body mirror and adaptive-card attachments
- DOCUMENT > PHOTO > VIDEO > AUDIO precedence for mixed attachments,
  matching the Email precedence rationale from #44695
2026-06-12 02:05:41 -07:00
..
__init__.py feat(teams): add Microsoft Teams platform adapter as a plugin 2026-04-30 01:19:34 -07:00
adapter.py fix(teams): cache document/video/audio attachments and classify as DOCUMENT (#44778) 2026-06-12 02:05:41 -07:00
plugin.yaml refactor(plugins/platforms): migrate IRC + Teams to new env_enablement + cron_deliver hooks 2026-05-07 07:15:44 -07:00