@zenrows/cli 1.13.0 → 1.13.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
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.13.1](https://github.com/ZenRows/cli/compare/v1.13.0...v1.13.1) (2026-11-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Behaviour Changes
|
|
7
|
+
|
|
8
|
+
* **fetch:** the default --timeout is 200 s instead of 120 s, so a slow request gets the API's full 3 minutes ([07dc59f](https://github.com/ZenRows/cli/commit/07dc59ffecab780e3bfd78ceeee939c14c3b9891))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **fetch:** wait past the API's 3-minute budget before giving up ([07dc59f](https://github.com/ZenRows/cli/commit/07dc59ffecab780e3bfd78ceeee939c14c3b9891))
|
|
14
|
+
|
|
3
15
|
## [1.13.0](https://github.com/ZenRows/cli/compare/v1.12.0...v1.13.0) (2026-11-06)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -35,7 +35,7 @@ export const fetch_ = {
|
|
|
35
35
|
" --output <fmt> html (default) | markdown | text | pdf",
|
|
36
36
|
" --screenshot capture an above-the-fold screenshot",
|
|
37
37
|
" --out <file> write the response body to a file",
|
|
38
|
-
" --timeout <ms> client-side timeout (default
|
|
38
|
+
" --timeout <ms> client-side timeout (default 200000; above the API's own 180s budget)",
|
|
39
39
|
" --retries <n> retry 429/502/503/504 and failed connects up to n times (default 0)",
|
|
40
40
|
" --no-signup do not auto-create a Free plan account if no key exists",
|
|
41
41
|
" --json print a structured result",
|
package/dist/src/core/config.js
CHANGED
|
@@ -14,7 +14,7 @@ export const CONFIG_VERSION = "0.1.0";
|
|
|
14
14
|
* entrypoint) so core modules — telemetry, signup provenance — can read it
|
|
15
15
|
* without an import cycle. `VERSION` in `cli/index.ts` re-exports this.
|
|
16
16
|
*/
|
|
17
|
-
export const CLI_VERSION = "1.13.
|
|
17
|
+
export const CLI_VERSION = "1.13.1"; // x-release-please-version
|
|
18
18
|
/** The User-Agent on every request to a Zenrows API. The gateway reads the version from it. */
|
|
19
19
|
export const CLI_USER_AGENT = `zenrows-cli/${CLI_VERSION}`;
|
|
20
20
|
/** Env var to override the Fetch and Extract API base (local/staging testing). */
|
package/dist/src/core/http.js
CHANGED
|
@@ -15,7 +15,7 @@ import { agentClientHeader } from "./agent-client.js";
|
|
|
15
15
|
import { normalizeDomain, PAGE_NOT_RECOGNISED_STEPS, prepareCommand } from "./prepared-domains-api.js";
|
|
16
16
|
/**
|
|
17
17
|
* Client-side timeout for a Fetch and Extract request, deliberately ABOVE the
|
|
18
|
-
* gateway's own
|
|
18
|
+
* gateway's own request budget: a Fetch request can take up to 3 minutes.
|
|
19
19
|
*
|
|
20
20
|
* The two must not be equal. When they were both 90s, any request that used
|
|
21
21
|
* the full server budget became a race between our own abort and the API's
|
|
@@ -24,9 +24,9 @@ import { normalizeDomain, PAGE_NOT_RECOGNISED_STEPS, prepareCommand } from "./pr
|
|
|
24
24
|
* client must outlive the server budget so the API always gets the chance to
|
|
25
25
|
* answer for itself.
|
|
26
26
|
*/
|
|
27
|
-
export const DEFAULT_TIMEOUT_MS =
|
|
27
|
+
export const DEFAULT_TIMEOUT_MS = 200_000;
|
|
28
28
|
/** The gateway's own request budget. Kept here only to justify the default above. */
|
|
29
|
-
export const SERVER_BUDGET_MS =
|
|
29
|
+
export const SERVER_BUDGET_MS = 180_000;
|
|
30
30
|
/** No retry starts later than this after the first request. */
|
|
31
31
|
const RETRY_BUDGET_MS = 90_000;
|
|
32
32
|
/** Busy answers from the API, retried with `--retries`. */
|
|
@@ -393,7 +393,7 @@ export function extractDomainNotPrepared(url, body) {
|
|
|
393
393
|
* The CLI gave up waiting before the API answered. This is NOT unreachability:
|
|
394
394
|
* the connection was established and the gateway was still working, so telling
|
|
395
395
|
* the operator to check connectivity would send them at the wrong problem. The
|
|
396
|
-
* elapsed time is included so the
|
|
396
|
+
* elapsed time is included so the server budget is visible in the output.
|
|
397
397
|
*/
|
|
398
398
|
export function requestTimeout(url, timeoutMs, elapsedMs) {
|
|
399
399
|
const suggestedMs = Math.max(timeoutMs + 60_000, SERVER_BUDGET_MS + 60_000);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenrows/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Open-source CLI, MCP, skills, templates, workflows, recipes, and evals layer for giving AI agents reliable access to protected web data through Zenrows cloud infrastructure.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@ zenrows trace export <run-id> # JSON for sharing
|
|
|
32
32
|
it. A 429 ("Rate limited") keeps its advice with or without `--retries`: wait
|
|
33
33
|
a few seconds and retry; if it persists, lower concurrency.
|
|
34
34
|
- `REQUEST_TIMEOUT` → the CLI stopped waiting; the API was reached. Raise
|
|
35
|
-
`--timeout` (default
|
|
35
|
+
`--timeout` (default 200000ms, above the API's own 180s budget), or drop
|
|
36
36
|
`--wait-for` so the request finishes inside that budget and the API returns
|
|
37
37
|
its own error. Not a connectivity problem — do not chase the network.
|
|
38
38
|
- `BACKEND_UNAVAILABLE` → a genuine transport failure (DNS/TCP/TLS). Check
|