@hunt-labs/bytekit-cli 0.10.0 → 0.10.2
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 +20 -0
- package/dist/client.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,26 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.10.2] - 2026-10-07
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- The package's `typecheck` script now compiles the test files too (#4424). It runs
|
|
18
|
+
`tsc -p tsconfig.typecheck.json` instead of `tsc --noEmit`; `tsconfig.json`, the `build` script
|
|
19
|
+
and the published `dist/` are unchanged, so the CLI's behaviour and output are identical to 0.10.1.
|
|
20
|
+
- The API now accepts `async` as a JSON body field or a `?async=true` query parameter on both
|
|
21
|
+
`/v1/scrape` and `/v1/screenshots` (#5349); either one turns async on. The CLI's `--async` flag
|
|
22
|
+
is unchanged and keeps sending the spelling it always sent.
|
|
23
|
+
|
|
24
|
+
## [0.10.1] - 2026-09-24
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- A `/v1/search` provider failure now arrives at HTTP `503` instead of `502` (#4891): Cloudflare
|
|
29
|
+
replaced the API's `502` body with its own plain-text page, so the `search_provider_error` code
|
|
30
|
+
never reached the CLI. The body is unchanged and the CLI already reads it by shape, not status;
|
|
31
|
+
only a source comment changed in this package.
|
|
32
|
+
|
|
13
33
|
## [0.10.0] - 2026-09-14
|
|
14
34
|
|
|
15
35
|
### Added
|
package/dist/client.js
CHANGED
|
@@ -224,8 +224,8 @@ function drainBestEffort(body, abort) {
|
|
|
224
224
|
*
|
|
225
225
|
* Two error-body shapes exist across the API:
|
|
226
226
|
* - the canonical unified envelope `{error: {code, message}}` — tested FIRST, so it always wins;
|
|
227
|
-
* - a flat vendor-masked shape `{error: "<code>"}` (e.g. `/v1/search`
|
|
228
|
-
* `{"error":"search_provider_error"}`, docs/api/openapi.yaml §/v1/search
|
|
227
|
+
* - a flat vendor-masked shape `{error: "<code>"}` (e.g. `/v1/search` 503:
|
|
228
|
+
* `{"error":"search_provider_error"}`, docs/api/openapi.yaml §/v1/search 503) — the flat form
|
|
229
229
|
* is strictly a FALLBACK and can never override an envelope (#2541, mirrored here for #2586:
|
|
230
230
|
* the CLI's own copy of this parser had drifted from the SDK's and still only read the
|
|
231
231
|
* envelope shape, so a flat 502 rendered `internal_error` instead of `search_provider_error`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hunt-labs/bytekit-cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "ByteKit CLI — wraps @hunt-labs/bytekit-sdk as shell subcommands",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"commander": "^12.0.0",
|
|
44
|
-
"@hunt-labs/bytekit-sdk": "^0.11.
|
|
44
|
+
"@hunt-labs/bytekit-sdk": "^0.11.10"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
|
|
48
|
-
"typecheck": "tsc
|
|
48
|
+
"typecheck": "tsc -p tsconfig.typecheck.json",
|
|
49
49
|
"test": "vitest run"
|
|
50
50
|
}
|
|
51
51
|
}
|