Repository navigation
docs(channels): stop the provider reference contradicting the code - #780
Merged
Merged
Conversation
…age was written QQ, iMessage and Email are implemented (`Maturity::Preview`, with tests) but the provider reference still listed them as `planned` and stated outright that they are "not implemented". `future channel list` reads the code, so the CLI and the page contradicted each other, and the page is the thing a reader scans first. Also fixes two values that drifted the same way: Email advertises `threads` (replies carry In-Reply-To/References) and so does its row now, and the `live` legend claimed only the terminal channel qualifies while Feishu and DingTalk are declared live elsewhere on the same page. The capability columns, the message limit and the maturity of every row are now checked against the provider sources by `scripts/check-channel-matrix.py`, wired into `make check-docs`, so the table cannot drift from the definitions again without failing a command someone runs before touching the docs. The three per-channel sections describe what the implementations actually do (QQ's gateway handshake and token refresh, iMessage's AppleScript send plus database poll, Email's two protocol subsets) and what a reader must still verify themselves.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
docs/guide/channels-providers.mdis the page a reader scans to decide what a channel can do, and every value in its matrix is declared by a provider'sChannelDefinition. Three providers landed after that page was written and the page was never revisited, so it says:planned;### QQ (planned)etc. and say "Not implemented in this build";All three are in fact
Maturity::Previewwith test suites (qq_tests.rs,imessage_tests.rs,email_tests.rs).future channel listreads the code, so the CLI and the page disagreed — and this is the "docs must match code" class the repo cares about.Two more values had drifted the same way:
threads(replies carryIn-Reply-To/References);livelegend said "Only the terminal channel qualifies today" while the same page says Feishu and DingTalk arelive.The change
op 10hello /op 2identify / re-identify onop 7/op 9) and itsmsg_id+msg_seqreplies; iMessage's AppleScript send and read-only database poll with the Apple-epoch conversion; Email's two protocol subsets, its MIME handling, itssecurity/timeout_secondsfields and the fact that it polls rather than idles.scripts/check-channel-matrix.pycompares the capability columns, the message limit (value and unit) and the maturity of every row against the provider sources, and is wired intomake check-docs. The table cannot drift from the definitions again without failing a command someone runs before touching the docs.Verification
Before the fix the checker reported, on the same file:
Docs-only plus one checker script; no crate code changes.