@hunt-labs/bytekit-cli 0.9.4 → 0.10.0
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 +9 -0
- package/README.md +1 -0
- package/dist/commands/scrape.js +3 -0
- package/package.json +2 -2
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.0] - 2026-09-14
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `--solve-challenge` on `scrape create` (#4449). It sends `solve_challenge: true`, which asks
|
|
18
|
+
the scrape to attempt to clear a Cloudflare challenge; success is not guaranteed. It is billed
|
|
19
|
+
as a normal browser render. Without the flag the request body is unchanged and carries no
|
|
20
|
+
`solve_challenge` key.
|
|
21
|
+
|
|
13
22
|
## [0.9.4] - 2026-09-10
|
|
14
23
|
|
|
15
24
|
### Added
|
package/README.md
CHANGED
|
@@ -129,6 +129,7 @@ materialized):
|
|
|
129
129
|
| `--include-tags <csv>` | Comma-separated HTML tags to keep. |
|
|
130
130
|
| `--exclude-tags <csv>` | Comma-separated HTML tags to drop. |
|
|
131
131
|
| `--mobile` | Render with a mobile viewport/user-agent. |
|
|
132
|
+
| `--solve-challenge` | Attempt to clear a Cloudflare challenge; success is not guaranteed. Billed as a normal browser render. |
|
|
132
133
|
| `--async` | Queue the scrape and return a job envelope immediately. |
|
|
133
134
|
| `--webhook-url <url>` | Webhook notified when an async scrape completes. |
|
|
134
135
|
|
package/dist/commands/scrape.js
CHANGED
|
@@ -154,6 +154,7 @@ export function makeScrapeCommand(getGlobal) {
|
|
|
154
154
|
.option('--include-tags <csv>', 'Comma-separated HTML tags to keep (e.g. article,main)')
|
|
155
155
|
.option('--exclude-tags <csv>', 'Comma-separated HTML tags to drop (e.g. nav,footer)')
|
|
156
156
|
.option('--mobile', 'Render with a mobile viewport/user-agent')
|
|
157
|
+
.option('--solve-challenge', 'Attempt to clear a Cloudflare challenge; success is not guaranteed. Billed as a normal browser render.')
|
|
157
158
|
.option('--raw', 'Print the requested format body raw, with no JSON wrapper')
|
|
158
159
|
.option('-o, --output <file>', 'Write the output to the given file path (implies --raw unless --json is set)')
|
|
159
160
|
.action(async (opts) => {
|
|
@@ -221,6 +222,8 @@ export function makeScrapeCommand(getGlobal) {
|
|
|
221
222
|
body['exclude_tags'] = parseCsv(opts.excludeTags);
|
|
222
223
|
if (opts.mobile === true)
|
|
223
224
|
body['mobile'] = true;
|
|
225
|
+
if (opts.solveChallenge === true)
|
|
226
|
+
body['solve_challenge'] = true;
|
|
224
227
|
try {
|
|
225
228
|
// Inside the try: buildClient() throws on a missing key (#2686 item 4) and the throw must reach handleError(). See its doc comment in client.ts.
|
|
226
229
|
const client = buildClient(g);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hunt-labs/bytekit-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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.
|
|
44
|
+
"@hunt-labs/bytekit-sdk": "^0.11.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
|