@jayyuen66/dsh-scrapling 0.1.3 → 0.1.5
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 +60 -0
- package/README.md +3 -2
- package/README.zh-CN.md +3 -2
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/bin/dsh-scrapling.mjs +119 -10
- package/client.js +110 -35
- package/cordis.patch.yml +1 -1
- package/docs/DETAIL.md +41 -0
- package/docs/DETAIL.zh.md +41 -0
- package/host.js +24 -25
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +54 -45
- package/py/adapters.py +59 -5
- package/py/crawl.py +82 -0
- package/py/media.py +79 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
3
3
|
格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循
|
|
4
4
|
[语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。
|
|
5
5
|
|
|
6
|
+
## 0.1.5
|
|
7
|
+
|
|
8
|
+
这一版把设置卡与读面校验统一到 shared 组件和 zod,让提示指引跟随宿主的步骤准入视图,
|
|
9
|
+
并把插件页展示面收进包。宿主开发线抬到 0.2.2-alpha.2。
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **设置卡迁到 shared 组件**:字段版式、保存条与状态条改用 `@jayyuen66/dsh-plugin-shared/lib/card-ui`,
|
|
14
|
+
本卡只保留运行环境区样式;布尔、数字、枚举与 URL 输入改由 zod schema 校验,非法原文留在控件里并
|
|
15
|
+
挡住保存。
|
|
16
|
+
- **读面形状校验改 zod**:`src/runtime-reader.ts` 的 strict codec、`lib/sidecar.ts` 的 capabilities、
|
|
17
|
+
`lib/runtime.ts` 的 manifest 都改用 zod;client 对 `status` / 动作回执也按 schema 收,坏形状不再当
|
|
18
|
+
合法值渲染。
|
|
19
|
+
- **runtime 状态里的能力包改为可选**:旧宿主少报某个包时整份状态照常解析,不再因为一个缺键把整张
|
|
20
|
+
运行环境区判成坏数据。
|
|
21
|
+
- **提示指引跟随步骤准入**:宿主提供 `toolSet` 时,指引按 `view(scope)` 的实际可见集生成,受限子代理
|
|
22
|
+
与条件工具不再沿用全量注册表;没有准入时退回原判据。
|
|
23
|
+
- **`zod` 进入运行期依赖**:client 产物按宿主 `PLATFORM_MODULES` 外置;CLI 单文件产物包含 zod。
|
|
24
|
+
- **宿主开发线抬到 `0.2.2-alpha.2`**:devDependencies 与 catalog/overrides 同值;`engines.dsh` 与 peer
|
|
25
|
+
仍写支持窗口 `^0.2.1-rc.3`,README 补滚动窗口说明;MCP server 自述版本同步到 0.1.5。
|
|
26
|
+
- **插件页展示面进包**:新增 `locale/en.json`、`locale/zh.json` 与 `docs/DETAIL.md`、`docs/DETAIL.zh.md`;
|
|
27
|
+
`exports` 增加 `./locale/*.json`,`files` 收进 locale 与 docs。
|
|
28
|
+
- **正则常量与迭代写法收口**:CLI、安装器、MCP profile、URL 策略与测试里的内联正则提取为命名常量,
|
|
29
|
+
展开迭代器改用 `Array.from`,行为不变。
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **单仓安装态下设置卡测试拿到真实 React hook**:registry 版 shared 的 `dist/card-ui.js` 被 vitest
|
|
34
|
+
外部化,它内部的 `require("react")` 绕过 `vi.mock("react")`;vitest 配置把
|
|
35
|
+
`@jayyuen66/dsh-plugin-shared` 内联,测试架重新走 mock。
|
|
36
|
+
- **pack-probe 的 `npm pack` 留下未解析的 `catalog:`**:`zod` 以 `catalog:` 写进运行期依赖,
|
|
37
|
+
npm pack 原样保留这个协议,干净目录 `npm install` 直接 `EUNSUPPORTEDPROTOCOL`;探针改用
|
|
38
|
+
pnpm pack(发布同款,会落成版本号)。
|
|
39
|
+
- **pack-probe 安装可选 peer 时解析出互斥的宿主版本**:探针原先只显式装 `dsh-tools`,npm 按
|
|
40
|
+
peer 范围解析出 rc.3,而 `dsh-web` 同一次安装里解析到 rc.4,两者要求不同的 `dsh-llm`;
|
|
41
|
+
探针改按 devDependency 的精确版装同一宿主线,安装树回到同一档。
|
|
42
|
+
- **`@deepseek-ai/dsh*` 的 peer 范围覆盖 alpha.2**:`^0.2.1-rc.3` 的预发布语义不含
|
|
43
|
+
`0.2.2-alpha.2`(不是同一 patch 元组),而本包装配和测试正是对着 alpha.2;范围改为
|
|
44
|
+
`^0.2.1-rc.3 || ^0.2.2-alpha.2`,与 README 的三版窗口一致。
|
|
45
|
+
|
|
46
|
+
## 0.1.4
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- **`scrapling_fetch` 的 `form` / `json` 不再静默落地**:`allowWriteMethods=false` 时这两个参数与 `method` / `body` 走同一道闸,模型参数面里根本不出现;写方法开启时,给了 `form` / `json` 而没给 `method` 会隐含 `POST`(与静态会话抓取一致),显式 `GET` 配请求体判 `BAD_ARGS`。此前请求照发、对端收到空体,而回包上没有任何一行能看出这件事。
|
|
51
|
+
- **离线解析器的 `url` 不再被出站闸门误拦**:`scrapling_extract` / `scrapling_locate` / `scrapling_links` 的 `url` 只作相对地址基准,不做 DNS 解析也不连网;此前它被当成取回目标,给一个内网基准地址就会报 `URL_BLOCKED`。
|
|
52
|
+
- **URL 守卫错误文案不再回显凭据**:`https://user:pass@host` 在 `URL_BLOCKED` 里脱敏成 `***@`,判定与连接仍用原串。
|
|
53
|
+
- **`sessionStateDir` 未配置时不再注册登录态存取工具**:`scrapling_session_state_save` / `scrapling_session_state_load` 现在与 jobs / attachments 同一种门,目录为空时那两只注定回 `SESSION_STATE_DISABLED` 的工具不会出现在工具目录里,并给一条点名修法的告警。
|
|
54
|
+
- **模型可见渲染补齐**:`includeHtml` 真正输出每条匹配的 `html`;`scrapling_locate` 的 `attributes`、`ancestors`、`full css` / `full xpath` 与 `truncated` / 截断提示进入模型文本;`session_network` 印出 `id` 与(`includeHeaders` 时)`headers`,`requestId` / `afterId` / `includeHeaders` 不再是无可见效果的旋钮;`capture_xhr` 零捕获时给一条「页面可能没有 XHR,也可能抓早了」的提示。
|
|
55
|
+
- **原生工具错误带回错误码**:sidecar 的错误不再只剩 `Error: <message>`,模型能看到 `BAD_ARGS: …` / `URL_BLOCKED: …` 前缀。
|
|
56
|
+
- **非法 `impersonate` 报 `BAD_ARGS`**:curl_cffi 在请求时才校验浏览器预设,过去把 `ImpersonateError` 泄漏成一次抓取失败;现在点名可用预设。
|
|
57
|
+
- **爬虫作业结算行保留错误码并区分取消与失败**:`BAD_ARGS` / `URL_BLOCKED` 以 `CODE: message` 进入作业最终 detail;`job_kill` 落 `killed` + `cancelled`,异常落 `failed`,不再一律 `killed`。
|
|
58
|
+
- **爬虫结果里的 `notice` 能到模型眼前**:`mode=shopify` 遇到 404 / 非 JSON / 非店铺 JSON、`mode=sitemap` 发现期被 `maxPages` 截断时,作业输出多一行 `crawl notice:`(此前 Python 侧有这份原因、JS 侧从不读)。
|
|
59
|
+
- **`sitemapFollow` 不再放大抓取**:发现期抓子 sitemap 与 sitemap URL 各自按 `maxPages` 封顶,`maxPages=2` 不会再打出几百次请求。
|
|
60
|
+
- **浏览器页面超时与工具调用预算解耦**:`scrapling_render` / `scrapling_capture_xhr` / 会话抓取 / `session_act` 在模型未给 `timeoutMs` 时不再下发页面超时(交给 Python 的 30s),显式值只按 `min(调用值, pageTimeoutMs)` 下发;坏选择器与永不 idle 的页面因此能返回 `ACTION_FAILED` / 结构化超时,而不是把整次调用拖到宿主外层 120s。
|
|
61
|
+
- **静态会话的 `extraHeaders` 生效**:此前只有浏览器会话合并它、静态路径静默丢掉;现在与 `headers` 合并,同名以 `extraHeaders` 为准。
|
|
62
|
+
- **浏览器下载走附件回退**:`useBrowser=true` 抓二进制响应时 Chromium 会报 `Page.goto: Download is starting`,现在改为先开会话取 URL、再经附件链路落盘;`DOWNLOAD_FAILED` 也补回原始原因。
|
|
63
|
+
- **登录态文件错误不再泄漏宿主绝对路径**:`state_load` 的 `FileNotFoundError` / JSON 解析错误只点名模型自己给的文件名。
|
|
64
|
+
- **文档与 CLI 同步**:随包 `cordis.patch.yml` 的工具数从 13 改到 19;`setup --status --profile <目录>` 读该 profile 的 `pythonBin`(不再永远回 `python3/path/unknown`);README 设置卡表把 `duckduckgoEndpoint` 从 volatile 栏移出,并新增 README 与 config schema 的一致性测试。
|
|
65
|
+
|
|
6
66
|
## 0.1.3
|
|
7
67
|
|
|
8
68
|
### Added
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ dsh plugin --profile web add @jayyuen66/dsh-scrapling
|
|
|
76
76
|
Remove with `dsh plugin --profile web remove @jayyuen66/dsh-scrapling`. The package is on the public npm registry, so installation needs no credentials and no scoped-registry line.
|
|
77
77
|
|
|
78
78
|
- **Requires Node.js `>= 22.12`.** This is an ESM-only package; that Node floor is what makes `require()` of an ESM entry work at all, which is why `engines.node` is declared.
|
|
79
|
-
- **Requires host `dsh` at the `0.2.1-rc.3` line.** The requirement the host actually reads is `engines.dsh` (`^0.2.1-rc.3`), and it decides alone; a host on a later line is refused and needs the explicit risk grant `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`.
|
|
79
|
+
- **Requires host `dsh` at the `0.2.1-rc.3` line.** The requirement the host actually reads is `engines.dsh` (`^0.2.1-rc.3`), and it decides alone; a host on a later line is refused and needs the explicit risk grant `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`. The support window rolls: this package is verified against the three most recently released host versions at publish time and re-verified once the window moves, so the version number in this bullet is not a standing promise.
|
|
80
80
|
- **Requires Python 3.14+ with Scrapling installed** — in the repository's `_env/.venv`, or reachable from `PATH`, or named by `pythonBin`. In an installed package the `_env/.venv` leg does not exist, so the interpreter is the `python3` on your `PATH` (`python` on Windows); whichever one is chosen is logged at load time, and a missing Scrapling reports an error carrying the install line to copy.
|
|
81
81
|
|
|
82
82
|
```sh
|
|
@@ -108,6 +108,7 @@ dsh-scrapling setup --status
|
|
|
108
108
|
- `search`, `media`, `mcp` and `adaptive-redis` all ride on `core`'s venv: `mcp` brings the official `scrapling-mcp` server (the `mcp` package, 16 tools) that `official-mcp` mode needs, and `adaptive-redis` brings the `redis` client behind `adaptiveStorage: redis`. Every pack is installable; the settings card reports each as `ready`, `missing`, `corrupt` or `installing`.
|
|
109
109
|
- `--feature` is a dry run by default; `--apply` writes. `--repair` re-installs without touching user data, and `--uninstall <pack> [--purge]` removes runtime files; only `--purge` removes `elements_storage.db` and `downloads/`.
|
|
110
110
|
- `--offline <dir>` installs with no network at all: `<dir>` must hold the Python archive named exactly as the manifest URL's last segment (browser and `curl -O` both keep `cpython-3.14.9+…-install_only.tar.gz`, and the percent-encoded spelling is accepted too) plus a `wheels/` directory with one wheel per pinned requirement - `pip download --only-binary=:all: --require-hashes -r py/runtime-requirements.txt -d <dir>/wheels` produces it. The hash check on the Python archive is the same one the networked path runs, and pip is invoked with `--no-index`; a missing archive or wheelhouse fails as `INSTALL_OFFLINE_ASSETS` instead of silently going online.
|
|
111
|
+
- `setup --status` prints one JSON document: `dataDir`, `profile`, `runtime`, `packs` and `state`. With `--profile <dir>` it reads that profile's `cordis.patch.yml` and resolves the interpreter from this package's `pythonBin` (the setting the host actually uses); without it, `profile.path` is `null`, a note says the profile was not read, and `runtime` falls back to the CLI's own chain (managed runtime → repo `_env/.venv` → PATH `python3`). Pass `--profile` whenever you compare the card's interpreter with what `--status` reports.
|
|
111
112
|
- The settings card can start the same install/repair/cancel actions through the `scraplingRuntime` remote when the profile has both a remote surface and a jobs backend; otherwise it prints the CLI command.
|
|
112
113
|
- `integrationMode` is deployment-only; `setup --mode` prints or writes the client entry for the two MCP shapes and `doctor` checks a profile against it — see [MCP mode](#mcp-mode). `official-mcp` starts `scrapling-mcp` from the managed venv, which the `mcp` pack provisions (`setup --feature mcp --apply`).
|
|
113
114
|
- Only **macOS arm64** is verified. Windows, Linux and macOS x64 are blocked (B1/B2): every pack reports `blocked` and the installer refuses rather than guessing an asset path.
|
|
@@ -291,7 +292,6 @@ Settings live on the **scrapling** card in the plugin detail page, grouped by pu
|
|
|
291
292
|
| `searchPublicFallback` | boolean | `false` | Lets `auto` fall back to public engines (DuckDuckGo / Bing) when neither a key nor SearXNG is configured. Off by default on purpose: turning it on sends query strings to third-party public engines |
|
|
292
293
|
| `braveApiKey` / `serperApiKey` | secret | `""` | Keys for the Brave Search and Serper.dev backends |
|
|
293
294
|
| `searxngEndpoint` | string | `""` | Base URL of a SearXNG instance (`…/search?format=json` is appended); empty means the backend is unusable and reports `SEARCH_AUTH` |
|
|
294
|
-
| `duckduckgoEndpoint` | string | `https://html.duckduckgo.com/html/` | DuckDuckGo HTML endpoint; override for a mirror or a test stub |
|
|
295
295
|
| `answerProvider` / `answerModel` / `answerMaxTokens` | string / natural | `""` / `""` / `2000` | The model `scrapling_answer` routes to and the per-reply token cap. Provider and model left empty mean "follow the model the current session is already using" |
|
|
296
296
|
| `allowedHosts` | string | `""` | Extra host names that skip the public-address check (comma-separated). Pointing it at an intranet address means giving up SSRF protection for those targets on purpose |
|
|
297
297
|
| `syntheticDnsRanges` | string | `""` | Manual fallback for synthetic DNS: a comma-separated CIDR list of your proxy's fake-IP pool, for resolvers that mix synthetic and real answers. Invalid entries are dropped — a broken fallback degrades to "stay strict", not to a crash |
|
|
@@ -316,6 +316,7 @@ Settings live on the **scrapling** card in the plugin detail page, grouped by pu
|
|
|
316
316
|
| `crawlDownloadDelayMs` / `crawlConcurrentRequests` / `crawlAutothrottle` / `crawlStrategy` | `0` / `4` / `false` / `bfs` | Gap between requests, parallelism, adaptive throttling, breadth- or depth-first order |
|
|
317
317
|
| `crawlCheckpointDir` | `""` | Persist the crawl queue so a restarted crawl resumes instead of going back to the start URL |
|
|
318
318
|
| `tavilyApiEndpoint` / `bingEndpoint` / `searchRenderTopN` | `https://api.tavily.com/search` / `https://www.bing.com/search` / `3` | Discovery endpoints (overridable for tests or proxies), and how many results are actually fetched and rendered (`0` = link list only) |
|
|
319
|
+
| `duckduckgoEndpoint` | `https://html.duckduckgo.com/html/` | DuckDuckGo HTML endpoint; override for a mirror or a test stub |
|
|
319
320
|
| `allowBrowserActions` / `allowFileDownloads` / `downloadMaxBytes` | `false` / `false` / `10485760` | Deployment-only gates for structured actions and downloads, plus the per-download byte cap. Both gates default off and also hide their tools from the model |
|
|
320
321
|
|
|
321
322
|
## <img src="https://api.iconify.design/lucide/network.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> Proxies
|
package/README.zh-CN.md
CHANGED
|
@@ -76,7 +76,7 @@ dsh plugin --profile web add @jayyuen66/dsh-scrapling
|
|
|
76
76
|
卸载用 `dsh plugin --profile web remove @jayyuen66/dsh-scrapling`。包在公共 npm registry 上,安装不需要凭据,也不需要 scoped-registry 配置行。
|
|
77
77
|
|
|
78
78
|
- **需要 Node.js `>= 22.12`。** 本包是 ESM-only;正是这条 Node 下限让 `require()` 一个 ESM 入口得以工作,`engines.node` 因此声明。
|
|
79
|
-
- **需要宿主 `dsh` 处在 `0.2.1-rc.3` 版本线。** 宿主真正读的是 `engines.dsh`(`^0.2.1-rc.3`),且它**单独决定**;更新版本线的宿主会被拒,需要显式风险授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk
|
|
79
|
+
- **需要宿主 `dsh` 处在 `0.2.1-rc.3` 版本线。** 宿主真正读的是 `engines.dsh`(`^0.2.1-rc.3`),且它**单独决定**;更新版本线的宿主会被拒,需要显式风险授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`。支持窗口是滚动的:本包在发布时最近的三个已发布宿主版本上逐版取证,窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
|
|
80
80
|
- **需要 Python 3.14+ 且装好 Scrapling** —— 在仓内 `_env/.venv` 里、能从 `PATH` 找到、或由 `pythonBin` 指定。装出去的包里没有 `_env/.venv` 这一档,解释器就是你 `PATH` 上的 `python3`(Windows 上是 `python`);选中哪一支会在装载时写进日志,缺 Scrapling 时报错里带着可直接照抄的安装命令。
|
|
81
81
|
|
|
82
82
|
```sh
|
|
@@ -108,6 +108,7 @@ dsh-scrapling setup --status
|
|
|
108
108
|
- `search`、`media`、`mcp` 与 `adaptive-redis` 都以 `core` 的 venv 为载体:`mcp` 带来 `official-mcp` 模式要的官方 `scrapling-mcp` server(`mcp` 包,16 个工具),`adaptive-redis` 带来 `adaptiveStorage: redis` 背后的 `redis` 客户端。六个包都可安装;设置卡把每个包报成 `ready`、`missing`、`corrupt` 或 `installing`。
|
|
109
109
|
- `--feature` 默认 dry-run;`--apply` 才落盘。`--repair` 重装且不碰用户数据;`--uninstall <包> [--purge]` 删运行时文件,只有 `--purge` 才连 `elements_storage.db` 与 `downloads/` 一起删。
|
|
110
110
|
- `--offline <目录>` 全程不联网:`<目录>` 里要有 Python 归档(文件名与清单 URL 的最后一段一致,浏览器与 `curl -O` 落盘的 `cpython-3.14.9+…-install_only.tar.gz` 可用,百分号转义那种写法也认),以及一个 `wheels/` 目录(每条钉版一枚 wheel,可用 `pip download --only-binary=:all: --require-hashes -r py/runtime-requirements.txt -d <目录>/wheels` 生成)。Python 归档的哈希校验与联网路径一致,pip 带 `--no-index`;缺归档或缺 wheelhouse 时报 `INSTALL_OFFLINE_ASSETS`,不会悄悄退回联网。
|
|
111
|
+
- `setup --status` 打印一份 JSON:`dataDir`、`profile`、`runtime`、`packs` 与 `state`。带 `--profile <目录>` 时读该 profile 的 `cordis.patch.yml`,按本包条目里的 `pythonBin`(宿主真正在用的那个设置)解析解释器;不带时 `profile.path` 为 `null`,输出里有一句说明没读 profile,`runtime` 回落到 CLI 自己的链(托管 runtime → 仓内 `_env/.venv` → PATH `python3`)。要拿 `--status` 和设置卡上的解释器对照,就带上 `--profile`。
|
|
111
112
|
- profile 同时有远程读面与作业后端时,设置卡能经 `scraplingRuntime` 发起同一套安装/修复/取消;否则显示可照抄的 CLI 命令。
|
|
112
113
|
- `integrationMode` 只在部署配置里;`setup --mode` 负责打印或写出两种 MCP 接法的客户端条目,`doctor` 用来核对一份 profile —— 见 [MCP 模式](#mcp-模式)。`official-mcp` 起的是托管 venv 里的 `scrapling-mcp`,由 `mcp` 能力包装进去(`setup --feature mcp --apply`)。
|
|
113
114
|
- 只验证了 **macOS arm64**。Windows、Linux 与 macOS x64 是 blocked(B1/B2):所有包都报 `blocked`,安装器直接拒绝,不猜资产路径。
|
|
@@ -291,7 +292,6 @@ dsh-scrapling doctor --mode mcp --profile <profileDir>
|
|
|
291
292
|
| `searchPublicFallback` | boolean | `false` | 允许 `auto` 在既没有 key、也没有 SearXNG 时回落到公共引擎(DuckDuckGo / Bing)。**默认关是刻意的**:打开就等于把查询词发给第三方公共引擎 |
|
|
292
293
|
| `braveApiKey` / `serperApiKey` | secret | `""` | Brave Search 与 Serper.dev 的 key |
|
|
293
294
|
| `searxngEndpoint` | string | `""` | SearXNG 实例的基址(会拼上 `…/search?format=json`);为空表示这条后端不可用,报 `SEARCH_AUTH` |
|
|
294
|
-
| `duckduckgoEndpoint` | string | `https://html.duckduckgo.com/html/` | DuckDuckGo HTML 端点;镜像或测试 stub 可覆盖 |
|
|
295
295
|
| `answerProvider` / `answerModel` / `answerMaxTokens` | string / natural | `""` / `""` / `2000` | `scrapling_answer` 走哪条模型路由与单次回答的 token 上限。provider 与 model 都留空表示「跟随当前会话的模型」 |
|
|
296
296
|
| `allowedHosts` | string | `""` | 额外放行的主机名(逗号分隔)。指向内网等于主动放弃那些目标的 SSRF 防护 |
|
|
297
297
|
| `syntheticDnsRanges` | string | `""` | 合成 DNS 的手动兜底:填代理 fake-IP 池的 CIDR(逗号分隔),留给把合成地址与真地址混着返回的解析器。写错的段直接丢掉 —— 兜底坏了退化成「维持最严」,不该崩 |
|
|
@@ -316,6 +316,7 @@ dsh-scrapling doctor --mode mcp --profile <profileDir>
|
|
|
316
316
|
| `crawlDownloadDelayMs` / `crawlConcurrentRequests` / `crawlAutothrottle` / `crawlStrategy` | `0` / `4` / `false` / `bfs` | 请求间隔、并发数、自适应限速、广度或深度优先 |
|
|
317
317
|
| `crawlCheckpointDir` | `""` | 把爬取队列落盘,重启后从断点接着走而不是回到起始 URL |
|
|
318
318
|
| `tavilyApiEndpoint` / `bingEndpoint` / `searchRenderTopN` | `https://api.tavily.com/search` / `https://www.bing.com/search` / `3` | 发现端点(测试或代理可覆盖),以及前几条要真的抓下来渲染(`0` = 只给链接列表) |
|
|
319
|
+
| `duckduckgoEndpoint` | `https://html.duckduckgo.com/html/` | DuckDuckGo HTML 端点;镜像或测试 stub 可覆盖 |
|
|
319
320
|
| `allowBrowserActions` / `allowFileDownloads` / `downloadMaxBytes` | `false` / `false` / `10485760` | 部署级动作与下载门禁,以及单次下载的字节上限。两枚门禁默认关,关时对应工具也不注册给模型 |
|
|
320
321
|
|
|
321
322
|
## <img src="https://api.iconify.design/lucide/network.svg?color=%23658EFF&height=22" height="22" width="22" align="absmiddle" alt="" /> 代理
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -53,6 +53,7 @@ Scrapling 及浏览器引擎都是**运行期依赖**——本包通过它们的
|
|
|
53
53
|
| `playwright` | 1.64.1 | Apache-2.0(Microsoft) | 网络守卫 |
|
|
54
54
|
| `patchright` | 1.64.2 | Apache-2.0(Microsoft,patch 由 Kaliiiiiiiiii-Vinyzu 提供) | 浏览器渲染与网络守卫 |
|
|
55
55
|
| `ipaddr.js` | 2.5.0 | MIT | Host 侧 URL 策略的地址分类 |
|
|
56
|
+
| `zod` | catalog(伞根 4.6.7) | MIT | 设置卡 `src/runtime-reader.ts` 的 strict codec 形状校验;client 产物由宿主 `PLATFORM_MODULES` 提供 |
|
|
56
57
|
|
|
57
58
|
其余随 venv 安装的固定版本(含 `click`、`protego`、`curl_cffi`、`lxml` 等)见
|
|
58
59
|
`py/runtime-requirements.txt`,每一行都带 SHA256;本文件不复述整张表。
|