@hunt-labs/bytekit-mcp 0.3.7 → 0.3.8

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,16 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.3.8] - 2026-09-17
14
+
15
+ ### Changed
16
+
17
+ - Refreshed the bundled documentation snapshot after the TypeScript SDK changelog entry for
18
+ #4563, which records the widened internal `GET /v1/bulk` status vocabulary (`cancelled` is
19
+ now a documented status and an accepted filter). That entry is inside the bundled body of the
20
+ `changelog` page, and the page's truncation notice reports its new full size. Bundled content
21
+ only: no tool, schema or transport change.
22
+
13
23
  ## [0.3.7] - 2026-09-14
14
24
 
15
25
  ### Added
@@ -277,7 +277,7 @@
277
277
  "changelog": {
278
278
  "title": "Changelog",
279
279
  "section": "General",
280
- "body": "# Changelog\n\nRelease history for the ByteKit SDKs, CLI, and MCP server\n\nEach section below is the `CHANGELOG.md` kept alongside that client’s source in the ByteKit\nrepository. Entries record what a release changed, including names and options it retired.\n\n## @hunt-labs/bytekit-sdk\n\nTypeScript SDK, published on npm.\n\n### [Unreleased]\n\n### [0.11.0] - 2026-09-14\n\n#### Added\n\n- **`solve_challenge` on `scrape.create` (#4447).** `ScrapeOpts` now carries\n `solve_challenge?: boolean`, and the generated `ScrapeRequest` schema type carries the field\n with its server default `false`. When `true`,\n the scrape attempts to clear a Cloudflare challenge; success is not guaranteed. It is billed\n as a normal browser render. A scrape that omits the option sends no `solve_challenge` key,\n so existing calls are unchanged on the wire.\n- **`credits_scrape` on the usage response types (#4452).** The generated `GET /v1/usage`\n response type and each `GET /v1/usage/daily` data item now carry `credits_scrape: number`:\n credits drawn under the scrape usage source, such as `/v1/schema` extractions. The gateway\n always charged this bucket but never returned it, so the published per-source credit fields\n could not add up to `credits_used`.\n\n#### Changed\n\n- **Internal `GET /v1/bulk` is cursor-paginated and its 100-job cap is gone (#4508).** The\n generated `listBulk` types record a changed response shape: the operation used to return a\n bare array of at most the 100 newest jobs, and now returns the same page envelope\n `GET /v1/monitors` does, `{ data, next_cursor, has_more }`, plus `limit` and `cursor` query\n parameters (`limit` is 1 to 100, default 25). A `status` filter and a `cursor` combine in\n one request: `status` narrows the set and the cursor addresses a position inside it. The\n operation's summary also no longer says \"in-flight\", which was wrong — it has always\n returned jobs of every status, `cancelled` included. This is a breaking change to the wire\n shape of an `x-sdk-scope: internal` operation; no SDK method calls it, so no published\n method signature moves.\n- **`GET /v1/logs` `billing_multiplier` is the bandwidth factor, not a credit count (#4469).**\n The generated logs-row type records the changed meaning of a public field: the value is now\n `billable_bytes` / `raw_bytes` rounded to 2 decimal places — the factor the request settled\n at, carrying the endpoint, cache-hit and clean-markdown factors, and the flat 1.5 Phase-1\n factor on screenshots and recordings. It used to be the row's persisted `credits_charged`,\n an account credit count charged per capture option, so two screenshots billed at the same\n 1.5 factor reported `2` and `1`. The 2 decimal places are load-bearing rather than\n cosmetic: `billable_bytes` is itself rounded, so an odd byte basis would otherwise surface\n as `1.500001943158721` instead of `1.5` on roughly half of all such rows. Every factor the\n field can report is a multiple of 0.25, so 2 places is exact for any basis of 100 bytes or\n more, and `raw_bytes` × `billing_multiplier` rounded to the nearest byte still reproduces\n `billable_bytes`. The `billable_bytes` doc comment therefore no longer says it is NOT\n `raw_bytes` × `billing_multiplier`. The field is also null on more rows than before: a\n search or webhook row has no byte basis, a capture whose Phase 1 was skipped has a zero one,\n and a capture old enough to predate the Phase-1 basis being recorded has none at all. One\n residual is documented rather than fixed: a markdown `/v1/fetch` row completed before the\n billing decomposition was recorded reports 1.0 where settlement charged 1.5, because nothing\n on such a row distinguishes it. The type shapes are unchanged (`number | null`), and no SDK\n method calls this endpoint.\n- **An all-null `/v1/schema` extraction your schema allows is validated again (#4490).** The\n generated `/v1/schema` 200 response type records the exception to #4455's rule: an output\n whose every leaf is `null` still arrives `validated: true` with the object intact, and is\n charged, when the schema you sent declares `\"null\"` in the `type` union of every leaf the\n output returned as `null`. Only that form counts — `nullable: true`, an `enum` containing\n `null` and `const: null` do not, and a response that is itself `null` rather than an object is\n never accepted however the root is declared. Everything else stays the #4455 miss. The `data`\n doc comment now also states the other half: a `validated: true` response always carries an\n object, never `null`. The type shapes are unchanged; only their doc comments moved.\n- **An all-null `/v1/schema` extraction is reported, not validated (#4455).** The generated\n `/v1/schema` 200 response type documents a new additive warning code, `empty_extraction`: a\n schema-valid output whose every leaf is `null` now arrives with `data: null` and\n `validated: false`, and is not charged the per-request credits. Previously it arrived as\n `validated: true` with the all-null object and no warning. The `data` and `validated` doc\n comments now also say that every `validated: false` response carries `data: null`; the old\n comment claimed exhausted retries returned the last raw output, which the API never did. The\n type shapes are unchanged; only their doc comments moved.\n- **An inline `POST /v1/scrape` failure is documented with a persisted `id` (#4454).** The\n gateway now records a sync scrape that ends `upstream_error` or `blocked` as a failed scrape\n job, so its `failed` envelope carries that job's `sc_` id instead of `null`, `scrape.get(id)`\n returns the same envelope, and the request appears in the dashboard Logs. The generated\n `createScrape` 200 and `ScrapeErrorEnvelope` doc comments and the `scrape.create` doc comment\n no longer say `id: null`. The type shapes are unchanged (`id` stays `string | null`), and\n `scrape.create` still throws `ByteKitError` on that envelope exactly as before.\n- **Internal `GET /v1/logs` types list search and webhook rows (#4460).** Both `endpoint` enums\n add `search` and `webhook`; a row's `source` is now `string | null`. No SDK method calls it.\n\n### [0.10.0] - 2026-09-11\n\n#### Changed\n\n- **A terminal `POST /v1/scrape` failure now throws instead of resolving (#1870).** The\n gateway used to report an upstream fetch failure — unreachable host, refused connection,\n or bot protection that defeated every proxy tier — as HTTP 503; it now answers **HTTP 200**\n with the canonical `failed` envelope (`id: null`), because a definitive upstream outcome is\n a result, not a transport error. `!response.ok` was this SDK's only failure seam, so without\n this change that body would resolve like a success and silence every caller's `catch`.\n `scrape.create` (and any `request` / `requestWithResponse` call to `POST /v1/scrape`) now\n raises `ByteKitError` carrying the envelope's `code` and `message`, the **actual** status\n `200`, the response headers, and `error.details` when one is supplied. A legacy 503 from a\n not-yet-upgraded gateway still throws through the unchanged non-2xx decoder, so the SDK\n works against both. **Upgrade note:** if you inspected `result.status === 'failed'` after\n `scrape.create`, move that handling into a `catch`.\n- Everything else is untouched: `scrape.get(id)`, bulk item results, and every other endpoint\n still deliver `failed` as data; `requestRaw` (`/v1/fetch`) never parses JSON and is\n unaffected; 204 and empty-body handling are unchanged. `request()` now delegates to\n `requestWithResponse()` so the guard has a single application site — identical in every\n observable respect but the return value, as both were already documented.\n\n### [0.9.4] - 2026-09-06 [NEVER PUBLISHED]\n\n**This version was cut but NEVER PUBLISHED — npm `latest` goes from 0.9.3 straight to 0.10.0.**\nPublication is triggered by CI on `main` from the version the manifest declares, and 0.10.0\n(#1870) superseded 0.9.4 in the tree before any release reached `main`. Everything below\nreaches consumers in the **0.10.0** artifact, which contains all of it; nothing is installable\nat 0.9.4: `npm i @hunt-labs/bytekit-sdk@0.9.4` fails.\n\n#### Added\n\n- Bulk fetch, scrape, and mixed-result reads now accept optional cursor, limit, and status\n page parameters while preserving the existing `(id, requestOptions?)` call shape (#3717).\n Generated response types publish stable item identities, page cursors and completeness,\n whole-job counters, exact mixed artifact keys, artifact warnings, bounded webhook recovery\n metadata, and the `artifact_unavailable` error contract.\n\n#### Fixed\n\n- Corrected the artifact-URL fallback documentation on `GET /v1/bulk/{id}/screenshots`\n (`image_url`, `content_url`, `markdown_url`) and `GET /v1/logs` (`artifact_url`) (#3717).\n Those fields were documented as null-plus-`artifact_unavailable` when no signature can be\n minted; the servers have always returned the row's stored value unchanged instead — `null`\n while nothing is stored, and otherwise the private unsigned storage URL, which answers `401`\n — and raise no warning. `GET /v1/fetch/bulk/{id}` does null the field and report\n `artifact_unavailable`, and its documentation is unchanged. No server behaviour changed and\n no type moved; the descriptions now match what the endpoints return.\n\n#### Changed\n\n- Regenerated `src/generated/api.d.ts` against the corrected `topup_balance_bytes` description\n on `GET /v1/usage` (#4251). The description read \"Remaining purchased top-up bytes\", which\n contradicted its own \"Equal to `topup_bytes`\" clause: the value covers purchased top-up lots\n and the one-time starter grant, which is what the endpoint has always returned. The clause\n recording that the figure is already net of consumed overage, and the \"Present only in\n dual/bytes billing mode\" clause, are both unchanged and still true. Types are unchanged and\n no server value changed; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the clarified `cache_age_s` description on\n `ScrapeSuccessEnvelope` (#4237). The description now records that `GET /v1/scrape/{id}`\n reports `cache: hit` without `cache_age_s`: the age is a property of the replay that happened\n at completion time, is not persisted on the row, and cannot be derived honestly afterwards.\n The one-directional \"Present only on `cache: hit`\" clause is unchanged and still true. Types\n are unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the completed `cache` presence list on\n `ScrapeSuccessEnvelope` (#4203). The field's description now names `GET /v1/scrape/{id}` as a\n third delivery path, alongside the synchronous response and webhook delivery: a polled scrape\n now reports the cache disposition its row recorded, and omits the field — rather than\n defaulting it to `miss` — for a row that recorded none. Types are unchanged; only the\n documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the corrected `PUT /v1/billing/auto-topup`\n request body (#3984). `monthly_cap_cents` is now typed `number | null`: an explicit `null` is\n the wire representation of \"no monthly cap\", and it is what the endpoint has always accepted —\n the request schema simply never documented it, while the 200 response schema already did.\n Omitting the key while `enabled` is `true` is still rejected with `422`, so send `null`\n rather than dropping the field. No server behaviour changes; the type widens to match what\n the API already accepted.\n- Regenerated `src/generated/api.d.ts` against the corrected monitor `scrape_options`\n documentation (#4024). The description no longer lists `headers` among the accepted\n fields — `POST /v1/monitors` never honoured a caller-supplied `headers` option and now\n rejects it with the same 400 every other capture endpoint returns for the field. Types are\n unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the completed `X-Scrape-Proxy-Tier-Label`\n omission list (#4030). The header's description now names a third case in which no tier is\n reported: a response replayed from stored bytes after this request's own cache lookup missed,\n which arrives as `X-Scrape-Cache: miss` and likewise ran no proxy tier. The two cases already\n documented — a cache hit, and responses the fast path did not serve — are unchanged. Types are\n unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the qualified `X-Scrape-Proxy-Tier-Label`\n omission list (#4132). The third case that list records — a response replayed from stored bytes\n after this request's own cache lookup missed — is not reachable through this API: every caller\n of the internal fetch path closes the handler branch that produces it, and the branch survives\n only as a deploy-skew safeguard. The description now says so rather than presenting the case as\n ordinary behaviour. The two reachable cases — a cache hit, and responses the fast path did not\n serve — are unchanged. Types are unchanged; only the documentation on them moved.\n\n### [0.9.3] - 2026-09-04\n\n#### Changed\n\n- Regenerated `src/generated/api.d.ts` against the corrected queued-scrape `status_url`\n documentation (#3925). `status_url` is a root-relative path, never an absolute URI: join it\n onto the API base URL you called (`https://api.bytekit.com`, no trailing slash) to get the URL\n to poll. The spec had declared it `format: uri` with an absolute example, which no server has\n ever emitted; the emitted value is unchanged, so no client behaviour moves.\n- Regenerated `src/generated/api.d.ts` against the documented proxy-tier response headers\n (#3926). `X-Scrape-Proxy-Tier-Label` now documents that it reports the tier that ACTUALLY\n served a scrape — after any escalation, never the tier first attempted — that it is\n diagnostic only, and that it is omitted on a cache hit, which replayed stored bytes and ran\n no tier. The deprecated numeric `X-Scrape-Proxy-Tier` documents the legacy `1` datacenter /\n `2` residential / `3` mobile vocabulary and its omission for the lean-browser tier. Types are\n unchanged; only the documentation on them moved.\n\n### [0.9.2] - 2026-09-03\n\n#### Changed\n\n- **Breaking (API):** the scrape `formats` vocabulary is now `raw | markdown | links | images`\n (#3775). The unprocessed-source format is called `raw` — it has returned JSON, XML and plain\n text alongside HTML since #1853, so the old raw-HTML name misdescribed it — and the\n cleaned-article-HTML format is gone. The server accepts no alias for either retired value, so\n a request naming one now comes back `422` with the new set in the message. Update `formats`\n and read the content back from `formats.raw`:\n\n ```ts\n const result = await client.scrape.create({ url, formats: ['raw', 'markdown'] });\n console.log(result.formats.raw);\n ```\n\n- Regenerated `src/generated/api.d.ts` against the documented `402` contract (#3784). Every\n quota-enforced operation now declares `402` through one shared `PaymentRequired` response, and\n the `X-Quota-*` headers are referenced by the operations that actually emit them. Types only —\n no runtime behavior changed.\n\n- The generated `events` field description on the scrape request type now documents the\n widened server default (`queued`, `completed`, `failed`) and that a caller may send an\n explicit subset to receive fewer deliveries (#3777). Types/docs only — this regeneration\n followed a server-side default change; the SDK carried no logic tied to the old default.\n\n### [0.9.1] - 2026-08-25\n\n#### Fixed\n\n- The generated `paths` type for the `200` of `GET /v1/scrape/bulk/{id}` now declares `items`\n (#3632). The route builds one body and varies only the status code, so the terminal `200`\n has always carried the per-URL scrape envelopes — but only the `202` documented them, so\n `scrape.bulk.get()` typed the results away at exactly the poll that has them. Types only:\n the field was already on the wire, and server behavior is unchanged.\n\n- The generated `p\n\n---\n[Truncated to the 16384-byte per-page limit — this page is 192373 bytes in full. The text cut here is not searchable either: search_docs matches only the part kept above. Read all of it at https://bytekit.com/docs/changelog]"
280
+ "body": "# Changelog\n\nRelease history for the ByteKit SDKs, CLI, and MCP server\n\nEach section below is the `CHANGELOG.md` kept alongside that client’s source in the ByteKit\nrepository. Entries record what a release changed, including names and options it retired.\n\n## @hunt-labs/bytekit-sdk\n\nTypeScript SDK, published on npm.\n\n### [Unreleased]\n\n### [0.11.1] - 2026-09-17\n\n#### Changed\n\n- Regenerated `src/generated/api.d.ts` (#4563): the internal `listBulk` operation's `status`\n query parameter and list-item `status` now admit `cancelled`. Additive; no SDK method calls\n `listBulk`, so no published signature moves.\n\n### [0.11.0] - 2026-09-14\n\n#### Added\n\n- **`solve_challenge` on `scrape.create` (#4447).** `ScrapeOpts` now carries\n `solve_challenge?: boolean`, and the generated `ScrapeRequest` schema type carries the field\n with its server default `false`. When `true`,\n the scrape attempts to clear a Cloudflare challenge; success is not guaranteed. It is billed\n as a normal browser render. A scrape that omits the option sends no `solve_challenge` key,\n so existing calls are unchanged on the wire.\n- **`credits_scrape` on the usage response types (#4452).** The generated `GET /v1/usage`\n response type and each `GET /v1/usage/daily` data item now carry `credits_scrape: number`:\n credits drawn under the scrape usage source, such as `/v1/schema` extractions. The gateway\n always charged this bucket but never returned it, so the published per-source credit fields\n could not add up to `credits_used`.\n\n#### Changed\n\n- **Internal `GET /v1/bulk` is cursor-paginated and its 100-job cap is gone (#4508).** The\n generated `listBulk` types record a changed response shape: the operation used to return a\n bare array of at most the 100 newest jobs, and now returns the same page envelope\n `GET /v1/monitors` does, `{ data, next_cursor, has_more }`, plus `limit` and `cursor` query\n parameters (`limit` is 1 to 100, default 25). A `status` filter and a `cursor` combine in\n one request: `status` narrows the set and the cursor addresses a position inside it. The\n operation's summary also no longer says \"in-flight\", which was wrong — it has always\n returned jobs of every status, `cancelled` included. This is a breaking change to the wire\n shape of an `x-sdk-scope: internal` operation; no SDK method calls it, so no published\n method signature moves.\n- **`GET /v1/logs` `billing_multiplier` is the bandwidth factor, not a credit count (#4469).**\n The generated logs-row type records the changed meaning of a public field: the value is now\n `billable_bytes` / `raw_bytes` rounded to 2 decimal places — the factor the request settled\n at, carrying the endpoint, cache-hit and clean-markdown factors, and the flat 1.5 Phase-1\n factor on screenshots and recordings. It used to be the row's persisted `credits_charged`,\n an account credit count charged per capture option, so two screenshots billed at the same\n 1.5 factor reported `2` and `1`. The 2 decimal places are load-bearing rather than\n cosmetic: `billable_bytes` is itself rounded, so an odd byte basis would otherwise surface\n as `1.500001943158721` instead of `1.5` on roughly half of all such rows. Every factor the\n field can report is a multiple of 0.25, so 2 places is exact for any basis of 100 bytes or\n more, and `raw_bytes` × `billing_multiplier` rounded to the nearest byte still reproduces\n `billable_bytes`. The `billable_bytes` doc comment therefore no longer says it is NOT\n `raw_bytes` × `billing_multiplier`. The field is also null on more rows than before: a\n search or webhook row has no byte basis, a capture whose Phase 1 was skipped has a zero one,\n and a capture old enough to predate the Phase-1 basis being recorded has none at all. One\n residual is documented rather than fixed: a markdown `/v1/fetch` row completed before the\n billing decomposition was recorded reports 1.0 where settlement charged 1.5, because nothing\n on such a row distinguishes it. The type shapes are unchanged (`number | null`), and no SDK\n method calls this endpoint.\n- **An all-null `/v1/schema` extraction your schema allows is validated again (#4490).** The\n generated `/v1/schema` 200 response type records the exception to #4455's rule: an output\n whose every leaf is `null` still arrives `validated: true` with the object intact, and is\n charged, when the schema you sent declares `\"null\"` in the `type` union of every leaf the\n output returned as `null`. Only that form counts — `nullable: true`, an `enum` containing\n `null` and `const: null` do not, and a response that is itself `null` rather than an object is\n never accepted however the root is declared. Everything else stays the #4455 miss. The `data`\n doc comment now also states the other half: a `validated: true` response always carries an\n object, never `null`. The type shapes are unchanged; only their doc comments moved.\n- **An all-null `/v1/schema` extraction is reported, not validated (#4455).** The generated\n `/v1/schema` 200 response type documents a new additive warning code, `empty_extraction`: a\n schema-valid output whose every leaf is `null` now arrives with `data: null` and\n `validated: false`, and is not charged the per-request credits. Previously it arrived as\n `validated: true` with the all-null object and no warning. The `data` and `validated` doc\n comments now also say that every `validated: false` response carries `data: null`; the old\n comment claimed exhausted retries returned the last raw output, which the API never did. The\n type shapes are unchanged; only their doc comments moved.\n- **An inline `POST /v1/scrape` failure is documented with a persisted `id` (#4454).** The\n gateway now records a sync scrape that ends `upstream_error` or `blocked` as a failed scrape\n job, so its `failed` envelope carries that job's `sc_` id instead of `null`, `scrape.get(id)`\n returns the same envelope, and the request appears in the dashboard Logs. The generated\n `createScrape` 200 and `ScrapeErrorEnvelope` doc comments and the `scrape.create` doc comment\n no longer say `id: null`. The type shapes are unchanged (`id` stays `string | null`), and\n `scrape.create` still throws `ByteKitError` on that envelope exactly as before.\n- **Internal `GET /v1/logs` types list search and webhook rows (#4460).** Both `endpoint` enums\n add `search` and `webhook`; a row's `source` is now `string | null`. No SDK method calls it.\n\n### [0.10.0] - 2026-09-11\n\n#### Changed\n\n- **A terminal `POST /v1/scrape` failure now throws instead of resolving (#1870).** The\n gateway used to report an upstream fetch failure — unreachable host, refused connection,\n or bot protection that defeated every proxy tier — as HTTP 503; it now answers **HTTP 200**\n with the canonical `failed` envelope (`id: null`), because a definitive upstream outcome is\n a result, not a transport error. `!response.ok` was this SDK's only failure seam, so without\n this change that body would resolve like a success and silence every caller's `catch`.\n `scrape.create` (and any `request` / `requestWithResponse` call to `POST /v1/scrape`) now\n raises `ByteKitError` carrying the envelope's `code` and `message`, the **actual** status\n `200`, the response headers, and `error.details` when one is supplied. A legacy 503 from a\n not-yet-upgraded gateway still throws through the unchanged non-2xx decoder, so the SDK\n works against both. **Upgrade note:** if you inspected `result.status === 'failed'` after\n `scrape.create`, move that handling into a `catch`.\n- Everything else is untouched: `scrape.get(id)`, bulk item results, and every other endpoint\n still deliver `failed` as data; `requestRaw` (`/v1/fetch`) never parses JSON and is\n unaffected; 204 and empty-body handling are unchanged. `request()` now delegates to\n `requestWithResponse()` so the guard has a single application site — identical in every\n observable respect but the return value, as both were already documented.\n\n### [0.9.4] - 2026-09-06 [NEVER PUBLISHED]\n\n**This version was cut but NEVER PUBLISHED — npm `latest` goes from 0.9.3 straight to 0.10.0.**\nPublication is triggered by CI on `main` from the version the manifest declares, and 0.10.0\n(#1870) superseded 0.9.4 in the tree before any release reached `main`. Everything below\nreaches consumers in the **0.10.0** artifact, which contains all of it; nothing is installable\nat 0.9.4: `npm i @hunt-labs/bytekit-sdk@0.9.4` fails.\n\n#### Added\n\n- Bulk fetch, scrape, and mixed-result reads now accept optional cursor, limit, and status\n page parameters while preserving the existing `(id, requestOptions?)` call shape (#3717).\n Generated response types publish stable item identities, page cursors and completeness,\n whole-job counters, exact mixed artifact keys, artifact warnings, bounded webhook recovery\n metadata, and the `artifact_unavailable` error contract.\n\n#### Fixed\n\n- Corrected the artifact-URL fallback documentation on `GET /v1/bulk/{id}/screenshots`\n (`image_url`, `content_url`, `markdown_url`) and `GET /v1/logs` (`artifact_url`) (#3717).\n Those fields were documented as null-plus-`artifact_unavailable` when no signature can be\n minted; the servers have always returned the row's stored value unchanged instead — `null`\n while nothing is stored, and otherwise the private unsigned storage URL, which answers `401`\n — and raise no warning. `GET /v1/fetch/bulk/{id}` does null the field and report\n `artifact_unavailable`, and its documentation is unchanged. No server behaviour changed and\n no type moved; the descriptions now match what the endpoints return.\n\n#### Changed\n\n- Regenerated `src/generated/api.d.ts` against the corrected `topup_balance_bytes` description\n on `GET /v1/usage` (#4251). The description read \"Remaining purchased top-up bytes\", which\n contradicted its own \"Equal to `topup_bytes`\" clause: the value covers purchased top-up lots\n and the one-time starter grant, which is what the endpoint has always returned. The clause\n recording that the figure is already net of consumed overage, and the \"Present only in\n dual/bytes billing mode\" clause, are both unchanged and still true. Types are unchanged and\n no server value changed; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the clarified `cache_age_s` description on\n `ScrapeSuccessEnvelope` (#4237). The description now records that `GET /v1/scrape/{id}`\n reports `cache: hit` without `cache_age_s`: the age is a property of the replay that happened\n at completion time, is not persisted on the row, and cannot be derived honestly afterwards.\n The one-directional \"Present only on `cache: hit`\" clause is unchanged and still true. Types\n are unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the completed `cache` presence list on\n `ScrapeSuccessEnvelope` (#4203). The field's description now names `GET /v1/scrape/{id}` as a\n third delivery path, alongside the synchronous response and webhook delivery: a polled scrape\n now reports the cache disposition its row recorded, and omits the field — rather than\n defaulting it to `miss` — for a row that recorded none. Types are unchanged; only the\n documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the corrected `PUT /v1/billing/auto-topup`\n request body (#3984). `monthly_cap_cents` is now typed `number | null`: an explicit `null` is\n the wire representation of \"no monthly cap\", and it is what the endpoint has always accepted —\n the request schema simply never documented it, while the 200 response schema already did.\n Omitting the key while `enabled` is `true` is still rejected with `422`, so send `null`\n rather than dropping the field. No server behaviour changes; the type widens to match what\n the API already accepted.\n- Regenerated `src/generated/api.d.ts` against the corrected monitor `scrape_options`\n documentation (#4024). The description no longer lists `headers` among the accepted\n fields — `POST /v1/monitors` never honoured a caller-supplied `headers` option and now\n rejects it with the same 400 every other capture endpoint returns for the field. Types are\n unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the completed `X-Scrape-Proxy-Tier-Label`\n omission list (#4030). The header's description now names a third case in which no tier is\n reported: a response replayed from stored bytes after this request's own cache lookup missed,\n which arrives as `X-Scrape-Cache: miss` and likewise ran no proxy tier. The two cases already\n documented — a cache hit, and responses the fast path did not serve — are unchanged. Types are\n unchanged; only the documentation on them moved.\n- Regenerated `src/generated/api.d.ts` against the qualified `X-Scrape-Proxy-Tier-Label`\n omission list (#4132). The third case that list records — a response replayed from stored bytes\n after this request's own cache lookup missed — is not reachable through this API: every caller\n of the internal fetch path closes the handler branch that produces it, and the branch survives\n only as a deploy-skew safeguard. The description now says so rather than presenting the case as\n ordinary behaviour. The two reachable cases — a cache hit, and responses the fast path did not\n serve — are unchanged. Types are unchanged; only the documentation on them moved.\n\n### [0.9.3] - 2026-09-04\n\n#### Changed\n\n- Regenerated `src/generated/api.d.ts` against the corrected queued-scrape `status_url`\n documentation (#3925). `status_url` is a root-relative path, never an absolute URI: join it\n onto the API base URL you called (`https://api.bytekit.com`, no trailing slash) to get the URL\n to poll. The spec had declared it `format: uri` with an absolute example, which no server has\n ever emitted; the emitted value is unchanged, so no client behaviour moves.\n- Regenerated `src/generated/api.d.ts` against the documented proxy-tier response headers\n (#3926). `X-Scrape-Proxy-Tier-Label` now documents that it reports the tier that ACTUALLY\n served a scrape — after any escalation, never the tier first attempted — that it is\n diagnostic only, and that it is omitted on a cache hit, which replayed stored bytes and ran\n no tier. The deprecated numeric `X-Scrape-Proxy-Tier` documents the legacy `1` datacenter /\n `2` residential / `3` mobile vocabulary and its omission for the lean-browser tier. Types are\n unchanged; only the documentation on them moved.\n\n### [0.9.2] - 2026-09-03\n\n#### Changed\n\n- **Breaking (API):** the scrape `formats` vocabulary is now `raw | markdown | links | images`\n (#3775). The unprocessed-source format is called `raw` — it has returned JSON, XML and plain\n text alongside HTML since #1853, so the old raw-HTML name misdescribed it — and the\n cleaned-article-HTML format is gone. The server accepts no alias for either retired value, so\n a request naming one now comes back `422` with the new set in the message. Update `formats`\n and read the content back from `formats.raw`:\n\n ```ts\n const result = await client.scrape.create({ url, formats: ['raw', 'markdown'] });\n console.log(result.formats.raw);\n ```\n\n- Regenerated `src/generated/api.d.ts` against the documented `402` contract (#3784). Every\n quota-enforced operation now declares `402` through one shared `PaymentRequired` response, and\n the `X-Quota-*` headers are referenced by the operations that actually emit them. Types only —\n no runtime behavior changed.\n\n- The generated `events` field description on the scrape request type now documents the\n widened server default (`queued`, `completed`, `failed`) and that a caller may send an\n explicit subset to receive fewer deliveries (#3777). Types/docs only — this regeneration\n followed a server-side default change; the SDK carried no logic tied to the old default.\n\n### [0.9.1] - 2026-08-25\n\n#### Fixed\n\n- The generated `paths` type for the `200` of `GET /v1/scrape/bulk/{id}` now declares `items`\n (#3632). The route builds one body and varies only the status code, so the terminal `200`\n\n---\n[Truncated to the 16384-byte per-page limit — this page is 193112 bytes in full. The text cut here is not searchable either: search_docs matches only the part kept above. Read all of it at https://bytekit.com/docs/changelog]"
281
281
  },
282
282
  "cli": {
283
283
  "title": "Install & Authenticate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunt-labs/bytekit-mcp",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "ByteKit MCP server — exposes ByteKit web-data tools (scrape, screenshot, search, docs) to AI agents over the Model Context Protocol, hosted or as a local stdio server.",
5
5
  "license": "MIT",
6
6
  "type": "module",