@hunt-labs/bytekit-mcp 0.3.17 → 0.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,158 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.3.18] - 2026-10-02
14
+
15
+ ### Changed
16
+
17
+ - The bundled documentation snapshot no longer describes `POST /v1/schema` as gated by a
18
+ server-side feature flag, and its API reference drops the `404` "feature flag disabled" response
19
+ (#4972); the Introduction snippets also gained read-the-result lines and runtime-true else-branch
20
+ comments (#5072); and the `libraries` page now carries the TypeScript and Python install and
21
+ scrape examples (#5113). The `get_doc` and `search_docs` tools serve the new text; no tool, schema or
22
+ transport change.
23
+ - The bundled documentation snapshot now documents the `401` response on every
24
+ bearer-authenticated operation (#5114): the Python SDK reference shows each operation's return
25
+ type gaining `Error`, and its changelog notes that a rejected API key is now returned as a typed
26
+ `Error` instead of raising `UnexpectedStatus`. The `get_doc` and `search_docs` tools serve the new
27
+ text; no tool, schema or transport change.
28
+ - The bundled documentation snapshot's API reference now lists expired keys among the reasons a
29
+ `401` carries `invalid_api_key` (#5242). The `get_doc` and `search_docs` tools serve the new
30
+ text; no tool, schema or transport change.
31
+ - The generated scrape-envelope contract follows the server (#5130): `ScrapeWarning.code` gains
32
+ `extract_validation_failed`, `exhausted_retries`, `content_truncated`, `model_refusal` and
33
+ `empty_extraction`, and `ScrapeFormats` gains an optional `json` result. No tool, schema or
34
+ transport change.
35
+ - The bundled documentation snapshot's `billing` and `guides/rate-limits` pages now point to
36
+ bytekit.com/pricing for prices and per-plan limits and name `GET /v1/plans` as the programmatic
37
+ plan catalog (#5332). The `get_doc` and `search_docs` tools serve the new text; no tool, schema
38
+ or transport change.
39
+ - The bundled documentation snapshot's Scraping guide now has an Options section covering every
40
+ public `POST /v1/scrape` option, with two worked curl examples (#5333). The `get_doc` and
41
+ `search_docs` tools serve the new text; no tool, schema or transport change.
42
+ - The bundled documentation snapshot's `POST /v1/scrape` API reference no longer lists the
43
+ internal-only `x_internal_scrape_path` request field (#5335); any property the OpenAPI spec marks
44
+ `x-internal: true` is now left out of the API reference. The `get_doc` and `search_docs` tools
45
+ serve the new text; no tool, schema or transport change.
46
+ - The bundled documentation snapshot's `guides/errors` page now describes HTTP `500 internal_error`
47
+ as a ByteKit-side failure instead of "the upstream fetch or browser render failed", says a
48
+ target-site failure appears as a `200` `failed` scrape envelope or a `422` `blocked` /
49
+ `upstream_error` on `/v1/fetch`, and no longer promises `500 internal_error` content in the
50
+ Scraping guide (#5336). The `get_doc` and `search_docs` tools serve the new text; no tool, schema
51
+ or transport change.
52
+ - The bundled documentation snapshot gains a `guides/screenshots` page (#5325): a working
53
+ `POST /v1/screenshots` request, the options that matter, the response, what a capture costs, and
54
+ the errors the endpoint returns. The `get_doc` and `search_docs` tools serve the new text; no
55
+ tool, schema or transport change.
56
+ - The bundled documentation snapshot gains a `guides/search` page (#5326): a working
57
+ `POST /v1/search` request, the options that matter, the response, what a search costs in credits,
58
+ and the errors the endpoint returns. The `get_doc` and `search_docs` tools serve the new text; no
59
+ tool, schema or transport change.
60
+ - The bundled documentation snapshot gains a `guides/schema-extraction` page (#5327): a working
61
+ `POST /v1/schema` request, the options that matter, how to write the schema, the response, what an
62
+ extraction costs, and the errors the endpoint returns. The `get_doc` and `search_docs` tools serve
63
+ the new text; no tool, schema or transport change.
64
+ - The bundled documentation snapshot's `introduction`, `quickstart` and `libraries` pages no longer
65
+ repeat themselves (#5334): `introduction` drops its curl call for a link to `quickstart`, which
66
+ now shows its first call once, the npm-package warning stays only on pages that run
67
+ `npm install`, the Client Libraries link targets `/libraries`, and the capability lists add
68
+ Search, Schema extraction and Fetch. The `get_doc` and `search_docs` tools serve the new text; no
69
+ tool, schema or transport change.
70
+ - The bundled documentation snapshot's `guides/scraping` and `guides/monitors` pages now attribute
71
+ `monitor.change_detected` and `monitor.captured` to screenshot monitors only, say a scrape monitor
72
+ sends `scrape.completed` with `has_change` telling a change from a no-change capture, and add
73
+ `was_preflight` to the scrape-monitor payload example (#5337). The `get_doc` and `search_docs`
74
+ tools serve the new text; no tool, schema or transport change.
75
+ - The bundled documentation snapshot and generated API types now document `async` as a body field
76
+ or a `?async=true` query parameter on both `POST /v1/scrape` and `POST /v1/screenshots` (#5349);
77
+ either one turns async on. The `get_doc` and `search_docs` tools serve the new text; no tool,
78
+ schema or transport change.
79
+ - The bundled documentation snapshot gains a `guides/fetch` page (#5340): a working `POST /v1/fetch`
80
+ request, the `X-Fetch-*` response headers, the options that matter, what a fetch costs, and the
81
+ errors the endpoint returns. The `get_doc` and `search_docs` tools serve the new text; no tool,
82
+ schema or transport change.
83
+ - The bundled documentation snapshot's `billing/bandwidth` page now states the capture basis in
84
+ customer words (1.5× the wire bytes of the initial page fetch), labels the crawl, Markdown-fetch
85
+ and recordings usage buckets as legacy, and says `/v1/fetch` has no Markdown output; the
86
+ `guides/rate-limits` page drops its Markdown-fetch claim (#5338). The `get_doc` and `search_docs`
87
+ tools serve the new text; no tool, schema or transport change.
88
+ - The bundled documentation snapshot gains a `guides/bulk` page (#5341): which of `POST /v1/bulk`,
89
+ `POST /v1/scrape/bulk` and `POST /v1/fetch/bulk` to use, how to submit a job, how results arrive by
90
+ `bulk.completed` webhook or by polling, how `DELETE /v1/bulk/{id}` cancels a job from any of the
91
+ three, what a bulk job costs, the plan and body limits, and the errors the routes return. The
92
+ `get_doc` and `search_docs` tools serve the new text; no tool, schema or transport change.
93
+ - The bundled documentation snapshot moves four edge-case passages to the page where a reader would
94
+ look for them (#5339): the per-route request body-size table and the bulk size-check paragraph go
95
+ from `mcp` to a new "Request size limits" section in `guides/rate-limits`, the cached
96
+ `/v1/fetch` error charge goes from `guides/rate-limits` to `billing/bandwidth`, and the monitor
97
+ first-capture and top-up "Bandwidth you owe" passages are shortened. The `get_doc` and
98
+ `search_docs` tools serve the new text; no tool, schema or transport change.
99
+ - The bundled documentation snapshot now states that `scrape_url` returns markdown when `formats` is
100
+ omitted while `POST /v1/scrape` returns raw, and that markdown bills the 1.5×
101
+ `scrape_md` endpoint factor (#5348). The `get_doc` and `search_docs` tools serve the new text; no
102
+ tool, schema or transport change.
103
+ - The bundled documentation snapshot gains a `guides/sitemap` page (#5342): a working
104
+ `POST /v1/sitemap` request, what the `quick`, `standard` and `deep` strategies look for, how to
105
+ poll `GET /v1/sitemap/{id}` and download the results file, the `cache` verdicts, the
106
+ `sitemap.completed` and `sitemap.failed` webhooks, what a job costs, and the errors the routes
107
+ return. The `get_doc` and `search_docs` tools serve the new text; no tool, schema or transport
108
+ change.
109
+ - The bundled documentation snapshot's Quickstart and Introduction now state the one-time starter
110
+ grant of 100 MB of bandwidth and 100 credits that a new pay-as-you-go account receives, and link
111
+ to its section in `billing/balance` (#5350). The `get_doc` and `search_docs` tools serve the new
112
+ text; no tool, schema or transport change.
113
+ - The bundled documentation snapshot now defines its billing words once, in a Terms list on
114
+ `billing/index` (bandwidth, credits, included allowance, USD balance, starter grant and balance),
115
+ and `guides/rate-limits` and `guides/errors` use those terms instead of "quota" (the "Quota
116
+ model" section of `guides/rate-limits` is now "Usage counting") (#5343).
117
+ Error codes and response fields keep their names. The `get_doc` and `search_docs` tools serve the
118
+ new text; no tool, schema or transport change.
119
+ - The bundled documentation snapshot's `libraries/python` page now opens with the `ByteKit` client
120
+ (#5351): a two-line first scrape, how `ByteKitError` is raised, every resource's methods, and
121
+ what the generated `.sync()` does with an undocumented status or a transport failure (it no
122
+ longer says `.sync()` returns `None` on a transport error). The `get_doc` and `search_docs` tools
123
+ serve the new text; no tool, schema or transport change.
124
+ - The bundled documentation snapshot gains a `guides/choosing-an-endpoint` page (#5344): which
125
+ endpoint to use for scrape or fetch, the three bulk APIs, schema or scrape, a screenshot or a
126
+ scrape monitor, and search or sitemap, each linking to its guide. The `get_doc` and `search_docs`
127
+ tools serve the new text; no tool, schema or transport change.
128
+ - The bundled documentation snapshot's `guides/schema-extraction` page no longer says a property
129
+ limited by `enum` can fail with `503 provider_error`: it now says the property comes back as
130
+ `null` when the page holds none of the listed values, and the errors table's `provider_error`
131
+ row names only list-only schemas (#5407). The `get_doc` and `search_docs` tools serve the new
132
+ text; no tool, schema or transport change.
133
+ - The bundled documentation snapshot's `guides/scraping` event table now lists `monitor.suspended`
134
+ (sent when a monitor is suspended because the account ran out of balance) (#5408). The `get_doc`
135
+ and `search_docs` tools serve the new text; no tool, schema or transport change.
136
+ - The bundled documentation snapshot's entry pages now agree with the pages that own each fact
137
+ (#5409): the Introduction no longer says Fetch converts to markdown or HTML, the Bulk summaries
138
+ describe one `bulk.completed` webhook per job instead of a webhook per item, the Rate Limits
139
+ pointers no longer cite a quota model, the Guides index starts with Choosing an endpoint, and the
140
+ Introduction, `libraries` page and Python SDK client page show the `ByteKit` facade for the first
141
+ scrape. The `get_doc` and `search_docs` tools serve the new text; no tool, schema or transport
142
+ change.
143
+ - The bundled documentation snapshot's API reference follows the corrected spec (#5410): `403`
144
+ responses on `/v1/screenshots`, `/v1/sitemap` and the three bulk creates, the `503` bodies of
145
+ `/v1/search` and `/v1/scrape`, a `500` on `/v1/schema`, a `custom` parameter on `GET /v1/fetch`,
146
+ the `json` entry of `formats` on `/v1/scrape`, and corrected descriptions across `/v1/fetch`,
147
+ the bulk reads, `/v1/sitemap` and `/v1/schema`. The `billing/bandwidth` page states the sitemap
148
+ cache-hit factor, and `guides/choosing-an-endpoint` covers choosing `/v1/scrape` with a `json`
149
+ entry versus `/v1/schema`. The `get_doc` and `search_docs` tools serve the new text; no tool,
150
+ schema or transport change.
151
+ - The bundled documentation snapshot's Bulk guide now says `POST /v1/fetch/bulk` answers a
152
+ `cookies` field with a `400` saying the field is no longer accepted, instead of pointing at
153
+ `/v1/bulk`, which rejects `cookies` too (#5425); `wait_for_selector`, `delay_ms` and `wait_until`
154
+ keep the `/v1/bulk` hint. The `get_doc` and `search_docs` tools serve the new text; no tool,
155
+ schema or transport change.
156
+ - The bundled documentation snapshot's Sitemap guide now says in its Cache section that a job which
157
+ was itself a cache hit is never matched, only the job that ran discovery is, so `cache_ttl`
158
+ counts from when that job finished (#5423). The `get_doc` and `search_docs` tools serve the new
159
+ text; no tool, schema or transport change.
160
+ - The bundled documentation snapshot's `guides/monitors` page now says in both webhook field tables
161
+ that `change_pct` is `null` on a monitor's first capture, instead of promising a number from 0 to
162
+ 100 (#5422). The `get_doc` and `search_docs` tools serve the new text; no tool, schema or
163
+ transport change.
164
+
13
165
  ## [0.3.17] - 2026-10-02
14
166
 
15
167
  ### Changed
package/dist/client.js CHANGED
@@ -593,7 +593,7 @@ async function parseErrorEnvelope(response, signal) {
593
593
  * when the message does not already name the code (issue #2687 item 2).
594
594
  *
595
595
  * Not applied where the client REPLACES the server's prose with its own actionable advice
596
- * — the 401/402 mappings (#2478) and the 429 species advice (#2681). Those messages are
596
+ * — the 401 mapping (#2478) and the 429 species advice (#2681). Those messages are
597
597
  * ByteKit's own sentences, not a server message to be labelled, and prefixing them would
598
598
  * change copy that two earlier tickets wrote deliberately.
599
599
  */