mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
6b3dffd398
* feat(gmail): add browser-backed adapter * docs(gmail): document adapter commands * refactor(gmail): remove unsupported write surface * chore(gmail): split author workflow into dedicated PR --------- Co-authored-by: OpenCLI-sol <opencli-sol@users.noreply.github.com>
1.1 KiB
1.1 KiB
schema_version, workflow_id, intent, last_verified, source
| schema_version | workflow_id | intent | last_verified | source |
|---|---|---|---|---|
| 1.1 | read-thread | read a Gmail conversation and its attachment metadata | 2026-08-25 | global |
Goal
Resolve a search thread id into complete message bodies and optional attachment metadata.
State signature
- entry: thread id from Gmail search, legacy hex id, or Gmail thread URL
- success: thread page has scoped message containers and command returns message rows
Best path
adapter: opencli gmail thread <thread>; use opencli gmail attachments <thread> for attachment rows
adapter_health: healthy
preconditions: signed in; target id valid
estimated_turns: 1
Fallback path
on_adapter_fail:
adapter_health_update: opencli gmail thread -> suspect- Search again so the target
[data-legacy-thread-id]row is mounted. - Open that row; expand collapsed messages.
- Extract
.a3sand.aQHonly inside each[data-message-id]container.
Avoid
- Page-level first-match body/attachment selectors.
- Retrying an
fdcapture indefinitely when Gmail served cached rendered content. - Logging or saving real message bodies as fixtures.