@hunt-labs/bytekit-cli 0.10.3 → 0.10.4

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,14 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.10.4] - 2026-11-05
14
+
15
+ ### Changed
16
+
17
+ - `screenshots create --device-scale-factor` accepts only `1` (#5630); `2` is rejected locally with
18
+ `--device-scale-factor must be one of: 1.`. The API now answers a `device_scale_factor` of `2` with a
19
+ 422 `validation_error`.
20
+
13
21
  ## [0.10.3] - 2026-10-23
14
22
 
15
23
  ### Changed
package/README.md CHANGED
@@ -230,7 +230,7 @@ bytekit screenshots get ss_123abc -o shot.png
230
230
  absent.
231
231
 
232
232
  It also accepts `--wait-for-selector <sel>`, `--delay-ms <n>`,
233
- `--device-scale-factor` (`1` or `2`), `--dark-mode`, `--include-html`,
233
+ `--device-scale-factor` (`1`), `--dark-mode`, `--include-html`,
234
234
  `--country <cc>`, `--language <lang>`, three JSON flags — `--headers <json>`
235
235
  (extra request headers as an object, e.g. `'{"X-A":"b"}'`), `--cookies <json>`
236
236
  (an array of `{name,value,domain}`), and `--metadata <json>` (echoed back on the
@@ -7,8 +7,8 @@ import { parseEnum, parseIntFlag, parseJsonFlag } from '../lib/parse-flags.js';
7
7
  const DEVICES = ['desktop', 'mobile'];
8
8
  const FORMATS = ['jpeg', 'png'];
9
9
  const WAIT_UNTILS = ['load', 'domcontentloaded', 'networkidle'];
10
- /** `device_scale_factor` accepts only 1 or 2 (spec enum [1, 2, null]); parsed as a string, sent numeric. */
11
- const DEVICE_SCALE_FACTORS = ['1', '2'];
10
+ /** `device_scale_factor` accepts only 1 (spec enum [1, null]); parsed as a string, sent numeric. */
11
+ const DEVICE_SCALE_FACTORS = ['1'];
12
12
  /** Parse `--viewport WxH` (e.g. `1280x720`) into `{ width, height }`; reject malformed input. */
13
13
  export function parseViewport(value) {
14
14
  const m = /^(\d+)x(\d+)$/.exec(value);
@@ -382,7 +382,7 @@ export function makeScreenshotsCommand(getGlobal) {
382
382
  body['delay_ms'] = opts.delayMs;
383
383
  if (opts.darkMode === true)
384
384
  body['dark_mode'] = true;
385
- // device_scale_factor is a spec integer enum [1, 2]; the parser validates the string, and
385
+ // device_scale_factor is a spec integer enum [1, null]; the parser validates the string, and
386
386
  // the wire value is numeric.
387
387
  if (opts.deviceScaleFactor !== undefined)
388
388
  body['device_scale_factor'] = Number(opts.deviceScaleFactor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunt-labs/bytekit-cli",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
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.13"
44
+ "@hunt-labs/bytekit-sdk": "^0.11.15"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rm -rf dist tsconfig.tsbuildinfo && tsc",