@hunt-labs/bytekit-cli 0.10.0 → 0.10.1

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,15 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.10.1] - 2026-09-24
14
+
15
+ ### Changed
16
+
17
+ - A `/v1/search` provider failure now arrives at HTTP `503` instead of `502` (#4891): Cloudflare
18
+ replaced the API's `502` body with its own plain-text page, so the `search_provider_error` code
19
+ never reached the CLI. The body is unchanged and the CLI already reads it by shape, not status;
20
+ only a source comment changed in this package.
21
+
13
22
  ## [0.10.0] - 2026-09-14
14
23
 
15
24
  ### 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` 502:
228
- * `{"error":"search_provider_error"}`, docs/api/openapi.yaml §/v1/search 502) — the flat form
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.0",
3
+ "version": "0.10.1",
4
4
  "description": "ByteKit CLI — wraps @hunt-labs/bytekit-sdk as shell subcommands",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "commander": "^12.0.0",
44
- "@hunt-labs/bytekit-sdk": "^0.11.0"
44
+ "@hunt-labs/bytekit-sdk": "^0.11.6"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rm -rf dist tsconfig.tsbuildinfo && tsc",