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.6 KiB
1.6 KiB
schema_version, page_id, url_patterns, purpose, last_verified, source
| schema_version | page_id | url_patterns | purpose | last_verified | source | |
|---|---|---|---|---|---|---|
| 1.1 | thread |
|
expanded Gmail conversation with messages and attachments | 2026-08-25 | global |
Visual anchors
- selector_pattern:
[data-message-id][data-legacy-message-id] - selector_pattern:
.a3sinside the matching message container - selector_pattern:
.aQHor[download_url]inside the message container - pattern: subject heading
h2[data-thread-perm-id]orh2.hP
Actions
### action:read_messages
pre: signed in; target thread id known
do: opencli gmail thread <threadId>
post: every expanded message returns id, sender, subject, body, and attachment array
fail: fd shape changed | rendered fallback finds no data-message-id/body pair
recover: adapter_health_update: opencli gmail thread -> suspect; expand collapsed messages, then inspect within each message container
evidence: live cached thread exercised rendered fallback on 2026-08-25
### action:list_attachments
pre: target thread id known
do: opencli gmail attachments <threadId>
post: one row per attachment; EmptyResult when none
fail: attachment cards visible but no rows | wrong message scope
recover: adapter_health_update: opencli gmail attachments -> suspect; inspect .aQH within each data-message-id container
evidence: live PDF attachment metadata on 2026-08-25
Page-specific pitfalls
- Opening a recently cached thread may produce no fresh
/fd; rendered message containers are the intended fallback. - Scope body and attachment selectors to each message container.