| index 4e211d6..4059c9f 100644 | | index 4e211d6..4059c9f 100644 |
| --- a/README.md | | --- a/README.md |
| +++ b/README.md | | +++ b/README.md |
| @@ -5,11 +5,17 @@ an agent one `web_search` tool across six backends, and gives you a page to pick | | @@ -5,11 +5,17 @@ an agent one `web_search` tool across six backends, and gives you a page to pick |
| 5 | backend, store keys and try a real search. | 5 | backend, store keys and try a real search. |
| 6 | | 6 | |
| 7 | ```sh | 7 | ```sh |
| 8 | -make # -> ./plugin_websearch | 8 | +make # -> ./plugin_websearch |
| 9 | -make test # the offline suite (84 assertions, no network, no credentials) | 9 | +make test # the offline suite (no network, no credentials) |
| 10 | -make e2e # Playwright at 1440/1024/390, dark + light | 10 | +make e2e # Playwright at 1440/1024/390, dark + light |
| | 11 | +make e2e --shots /tmp/shots # ...without overwriting the committed docs/*.png |
| 11 | ``` | 12 | ``` |
| 12 | | 13 | |
| | 14 | +Every `src/*.h`, `vendor/*.h` and `vendor/bearssl/*.h` is a rebuild prerequisite: a |
| | 15 | +one-line edit to a header (a version bump, a provider id, a buffer size) forces a |
| | 16 | +rebuild, because `make` reporting "Nothing to be done" while the previous binary |
| | 17 | +stays in place is a success message about a stale artifact. |
| | 18 | + |
| 13 | | | | | 19 | | | | |
| 14 | |---|---| | 20 | |---|---| |
| 15 | | Slug / binary | `websearch` / `plugin_websearch` (`--meta` name `websearch`, desc `Web search MCP`) | | 21 | | Slug / binary | `websearch` / `plugin_websearch` (`--meta` name `websearch`, desc `Web search MCP`) | |
| @@ -156,8 +162,11 @@ deliberate, and it is the honest answer for this connector: | | @@ -156,8 +162,11 @@ deliberate, and it is the honest answer for this connector: |
| 156 | * **Verified against a recording mock, end to end.** `tests/mockapi.py` serves all six | 162 | * **Verified against a recording mock, end to end.** `tests/mockapi.py` serves all six |
| 157 | providers, records the method, path, query, credential header and JSON body of every | 163 | providers, records the method, path, query, credential header and JSON body of every |
| 158 | request it receives, and the suite diffs that against what each provider's API | 164 | request it receives, and the suite diffs that against what each provider's API |
| 159 | - documents. That is 84 assertions covering request shape, normalisation, error text, | 165 | + documents, field by field. It covers the request shape, the |
| 160 | - auth gating and secret hygiene — the part a plugin can be *wrong* about. | 166 | + normalisation, the error text, auth gating and secret hygiene — the part a plugin can |
| | 167 | + be *wrong* about. The suite prints its own count; this file deliberately does not |
| | 168 | + repeat one, because a number written in prose goes stale the first time a test is |
| | 169 | + added (lesson (bs): a probe describes the behaviour, never today's count). |
| 161 | * **Not verified with a paid key.** Searching Brave/Tavily/Exa/Perplexity for real | 170 | * **Not verified with a paid key.** Searching Brave/Tavily/Exa/Perplexity for real |
| 162 | needs a paid account, and a plugin that claims `"live"` on the strength of a mock has | 171 | needs a paid account, and a plugin that claims `"live"` on the strength of a mock has |
| 163 | told you nothing. The unauthenticated paths were exercised against the real hosts: | 172 | told you nothing. The unauthenticated paths were exercised against the real hosts: |
| 164 | | 173 | |