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