@zenrows/cli 1.4.1 → 1.4.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.
|
@@ -26,8 +26,8 @@ export const fetch_ = {
|
|
|
26
26
|
" --js-render render JavaScript (manual mode only)",
|
|
27
27
|
" --premium-proxy use residential IPs (manual mode only)",
|
|
28
28
|
" --proxy-country <cc> geo-target (auto mode; in manual mode needs --premium-proxy)",
|
|
29
|
-
" --wait <ms> fixed wait after load",
|
|
30
|
-
" --wait-for <selector> wait for a CSS selector",
|
|
29
|
+
" --wait <ms> fixed wait after load (needs --manual --js-render; auto mode may ignore it)",
|
|
30
|
+
" --wait-for <selector> wait for a CSS selector (needs --manual --js-render; auto mode may ignore it)",
|
|
31
31
|
" --js-instructions <j> JSON instructions to run on the page",
|
|
32
32
|
" --session-id <n> keep the same IP across requests",
|
|
33
33
|
" --original-status return the target's original HTTP status",
|
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.4.
|
|
17
|
+
export const CLI_VERSION = "1.4.2";
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenrows/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
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",
|
|
@@ -20,9 +20,10 @@ zenrows trace export <run-id> # JSON for sharing
|
|
|
20
20
|
|
|
21
21
|
## Failure → action map
|
|
22
22
|
- `FETCH_FAILED` / empty content → first retry in auto mode (`mode=auto`), which
|
|
23
|
-
escalates for you and bills only for what succeeds.
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
escalates for you and bills only for what succeeds. Only when auto mode has
|
|
24
|
+
failed on its own, take manual control with `--manual --js-render`, then
|
|
25
|
+
`--premium-proxy`. For slow pages, add `--wait-for <selector>` to a
|
|
26
|
+
`--manual --js-render` run; auto mode may ignore it. Each step
|
|
26
27
|
multiplies the cost of the request, and both together are the most expensive
|
|
27
28
|
configuration available ([[cost-control]]).
|
|
28
29
|
- `REQUEST_TIMEOUT` → the CLI stopped waiting; the API was reached. Raise
|