@jayyuen66/dsh-scrapling 0.1.6 → 0.1.7

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,7 +1,40 @@
1
1
  # Changelog
2
2
 
3
3
  格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循
4
- [语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。
4
+ [语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。这里的偏离是刻意的:版本标题
5
+ 不写发布日期(各版发布时间以 npm registry 为准,`npm view <包名> time` 取得到),并按需增设
6
+ 标准六类之外的小节(本仓的 `Boundaries` 收各版本的验证范围与能力边界,即哪些平台/档位真跑过、
7
+ 哪些只到本地夹具为止)。
8
+
9
+ ## 0.1.7
10
+
11
+ 宿主支持窗口抬到 `0.2.1-rc.5 || 0.2.2-alpha.3`,MCP 客户端钉版、设置卡取值面与输出预算
12
+ 一起收口;构建与门禁补齐产物新鲜度、行尾与 lint 偏差三条判据,Python 侧补上有界关机。
13
+
14
+ ### Changed
15
+
16
+ - **宿主与发布元数据**:devDependencies 全族抬到 `0.2.2-alpha.3`(cordis `4.0.6-alpha.2`、schemastery `3.18.6-alpha.2`);`engines.dsh` 与 dsh 家族 peer 写 `^0.2.1-rc.5 || ^0.2.2-alpha.3`;MCP 客户端默认钉版改为 `0.2.2-alpha.3`,`doctor` 同时放行 rc 线的 `0.2.1-rc.5`;MCP server 自述版本同步 0.1.7。
17
+ - **搜索后端**:名单收进 `lib/search-backends.ts` 单一定义(CLI 判配置与设置卡 enum 同源),Brave/Serper 端点与 `auto` 的分流提示一起显式化;`searxngEndpoint` 改为遮罩输入。
18
+ - **输出预算**:浏览器抓取的网络历史单独封顶;正文被对端 `maxContentChars` 截断而本地未再截时也给出恢复指引,`scrapling_answer` 的截断落到同一条尾巴。
19
+ - **会话参数**:`cookies` / `blockedDomains` 给了非数组时报 `ToolArgsError`;`sessionType=static` 时递进来的浏览器档旋钮直接报错,不再静默丢掉;网络历史的方法名与说明常量收成单一定义。
20
+ - **运行环境与配置**:托管 runtime 只在 macOS arm64 尝试,其余平台报 `INSTALL_PACK_BLOCKED`;Windows 解释器名与根脚本统一为 `python`;`setup` / `doctor` 的 MCP 端口改为显式 `--port`;`nat64Prefixes` 非法时拒绝装载(`CONFIG_INVALID`),`stripInlineImages` 进卡;逗号串统一去空白,空列表不交空数组。
21
+ - **构建与门禁**:`build-helpers.ts` 收拢三份构建脚本的入口判定、原子写与「宿主包被内联」断言;新增 `eol-gate.mjs`、`test/artifact-freshness.test.ts`、`test/build-helpers.test.ts`、`test/lint-deviations.test.ts`,`check` 串上 `gate:eol`;oxlint 的每处规则收窄逐条登记理由并由测试双向核对。
22
+ - **Python 门禁**:ruff 开 RUF100(失效的 `noqa` 判红);mypy 去掉全局 `ignore_missing_imports`,只对 `lxml` 与可选依赖 `redis` 逐模块放行;coverage 开分支统计,地板仍由 `coverage-floor.mjs` 施加。
23
+ - **CI**:pnpm 钉到 `12.11.2`(与伞根 `packageManager` 同源);工作树改写判据先打印再判红;产物探针按 tarball 声明的 peer 范围解析 `dsh-tools`。
24
+ - **文档**:双语 README 与 DETAIL 对齐现量(49 个卡上取值、19 个工具、15 个开关、MCP 端口显式 `--port`、官方 MCP 工具集归上游)。
25
+
26
+ ### Fixed
27
+
28
+ - **Python 关机**:`close-crawls` / `close-sessions` 放进有界线程(10 秒),超时只留日志;drain 超时时把队列里还排着的帧逐条点名,不再静默丢。
29
+ - **协议与运行时**:`runtime-reader` 的 pack/job/拒绝码枚举改从 `runtime-shape.ts` 派生,四个 typert 描述符共用骨架;网关回包先判「对象且带布尔 `ok`」,坏形状报协议错误而不是读属性崩溃;空白 jobId 不再上网关。
30
+ - **错误与路径**:`sidecarErrorWithCode` 把 `details` 排在 `options` 之前,避免把 details 当成 cause 静默吞掉;runtime manifest 的定位以实际文件所在目录为准,`repoPythonPath` 单独抽出。
31
+ - **抽取**:`_query_type` 去掉不使用的 selector 参数,显式 `queryType` 优先于 `useXpath` 的语义写进函数本身。
32
+ - **探针**:`_env` 六份脚本同步到当前 Scrapling 0.5 API,失败按「缺依赖 / 抓取失败 / 探针自身」分类并汇总,不再一条异常中断整份探针。
33
+
34
+ ### Added
35
+
36
+ - `lib/search-backends.ts`、`eol-gate.mjs`、`test/artifact-freshness.test.ts`、`test/build-helpers.test.ts`、`test/lint-deviations.test.ts`。
37
+ - `py/tests/test_bridge.py` 补爬虫 worker 收尾与关机边界的用例;`contract_probe.py` 跟随新 API。
5
38
 
6
39
  ## 0.1.6
7
40
 
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.18`.** This is an ESM-only package, and the build entry points (`build-client.ts`, `build-host.ts`, `build-cli.ts`) are executed by `node` directly; TypeScript type stripping is on by default from Node 22.18, so that is the floor that keeps `pnpm build` and `prepack` working on a declared-supported version.
79
- - **Requires host `dsh` at the `0.2.1-rc.3` / `0.2.2-alpha.2` 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.
79
+ - **Requires host `dsh` at the `0.2.1-rc.5` or `0.2.2-alpha.3` line.** The requirement the host actually reads is `engines.dsh` (`^0.2.1-rc.5 || ^0.2.2-alpha.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 every released host version inside the window 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** — named by `pythonBin`, or found by the fixed chain in `lib/runtime.ts` (managed runtime under `dataDir/runtime`, then the repository's `_env/.venv`, then `PATH`). In an installed package the `_env/.venv` leg does not exist, so after `setup --feature core --apply` the interpreter is that managed Python and otherwise 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
@@ -105,7 +105,7 @@ dsh-scrapling setup --status
105
105
  ```
106
106
 
107
107
  - `core` installs managed Python 3.14.9, Scrapling 0.5 and its pinned wheels; `browser` adds the full Chromium build (not the headless shell).
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`.
108
+ - `search`, `media`, `mcp` and `adaptive-redis` all ride on `core`'s venv: `mcp` brings the official `scrapling-mcp` server (the pinned `mcp` package; its tool set is the upstream's, not this plugin's) 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
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.
@@ -230,7 +230,8 @@ In `mcp` mode the server runs inside the plugin's own host process and calls the
230
230
  Connecting dsh needs `@deepseek-ai/dsh-mcp-client`, which this plugin deliberately does not depend on. Pin the build that matches the current host — npm `latest` is older than the host's own line and the host rejects the mismatch:
231
231
 
232
232
  ```bash
233
- dsh plugin --profile <name> add @deepseek-ai/dsh-mcp-client@0.2.1-rc.3
233
+ dsh plugin --profile <name> add @deepseek-ai/dsh-mcp-client@0.2.2-alpha.3
234
+ # host on the 0.2.1-rc.5 line: @deepseek-ai/dsh-mcp-client@0.2.1-rc.5
234
235
  ```
235
236
 
236
237
  Then add one entry to that profile's `cordis.patch.yml` — this is exactly what `dsh-scrapling setup --mode mcp` prints, so you can also let the CLI write it (drop `headers` when no token is configured):
@@ -263,7 +264,7 @@ dsh-scrapling setup --mode native --apply # a file that deliberately contain
263
264
  dsh-scrapling doctor --mode mcp --profile <profileDir>
264
265
  ```
265
266
 
266
- `doctor` reads what the profile actually says - `cordis.patch.yml` plus that profile's `package.json` - and prints one line per problem: two entries under `serverName: scrapling`, this plugin's entry next to an official `stdio` one, entries that do not match the mode, an entry whose port disagrees with `--port`, a profile without `@deepseek-ai/dsh-mcp-client` or with it pinned to something other than `0.2.1-rc.3` / `next`, and an official entry while `officialMcpEnabled` is off. Exit `0` is "consistent", `1` names at least one problem, `2` is a bad argument. `integrationMode` itself is a plugin setting the CLI cannot read, so `--mode` is the claim being checked and has to match the deployment.
267
+ `doctor` reads what the profile actually says - `cordis.patch.yml` plus that profile's `package.json` - and prints one line per problem: two entries under `serverName: scrapling`, this plugin's entry next to an official `stdio` one, entries that do not match the mode, an entry whose port disagrees with `--port`, a profile without `@deepseek-ai/dsh-mcp-client` or with it pinned to something other than `0.2.2-alpha.3` / `0.2.1-rc.5` / `next`, and an official entry while `officialMcpEnabled` is off. Exit `0` is "consistent", `1` names at least one problem, `2` is a bad argument. `integrationMode` itself is a plugin setting the CLI cannot read, so `--mode` is the claim being checked and has to match the deployment.
267
268
 
268
269
  `official-mcp` asks for two separate statements before it produces anything: `officialMcpEnabled: true` in the profile and `--accept-risk` on the command line; missing either one prints `OFFICIAL_MCP_DISABLED` / `RISK_NOT_ACCEPTED` and writes nothing. The entry it generates starts `<dataDir>/runtime/venv/bin/scrapling-mcp`, so run `setup --feature mcp --apply` first - see [Runtime packs](#runtime-packs-macos-arm64). When that binary is missing, `setup` prints a line saying so.
269
270
 
@@ -297,7 +298,7 @@ Settings live on the **scrapling** card in the plugin detail page, grouped by pu
297
298
  | `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 |
298
299
  | `proxyUrl` | string | `""` | Where fetches go out (`http://…` / `socks5://…`, optionally `user:pass@`). Empty = follow the environment; see [Proxies](#proxies). Masked on the card, never enters a tool schema |
299
300
  | `proxyBypass` | string | `""` | Host names that connect directly, mirroring `NO_PROXY`; `*` means the whole machine goes direct |
300
- | `nat64Prefixes` | string | `""` | Extra NAT64 prefixes (comma-separated CIDRs) for operator-specific networks; a declared prefix applies to every IPv6 address |
301
+ | `nat64Prefixes` | string | `""` | Extra NAT64 prefixes (comma-separated `<IPv6 prefix>/<32\|40\|48\|56\|64\|96>`) for operator-specific networks. A declared prefix is consulted for every IPv6 answer and applies to the addresses inside it. A malformed entry makes the plugin **refuse to load** (`CONFIG_INVALID`), unlike `syntheticDnsRanges` below: dropping a prefix would let a private IPv4 embedded in IPv6 through as ordinary public IPv6 |
301
302
 
302
303
  **Deployment-only knobs** (not on the card; set them in the `config:` block of `cordis.patch.yml`):
303
304
 
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.18`。** 本包是 ESM-only,且构建入口(`build-client.ts`、`build-host.ts`、`build-cli.ts`)由 `node` 直接执行;TypeScript 的类型剥离自 Node 22.18 起默认开启,这条下限保证 `pnpm build` 与 `prepack` 在声明支持的版本上能跑通。
79
- - **需要宿主 `dsh` 处在 `0.2.1-rc.3` / `0.2.2-alpha.2` 版本线。** 宿主真正读的是 `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.5` 或 `0.2.2-alpha.3` 版本线。** 宿主真正读的是 `engines.dsh`(`^0.2.1-rc.5 || ^0.2.2-alpha.3`),且它**单独决定**;更新版本线的宿主会被拒,需要显式风险授权 `dsh plugin --profile <p> allow-version <pkg>@<ver> --dsh-version <exact> --accept-risk`。支持窗口是滚动的:本包在发布时把窗口内的每个已发布宿主版本逐版取证,窗口滚动后重新取证,不把这一句里的版本号当长期承诺。
80
80
  - **需要 Python 3.14+ 且装好 Scrapling** —— 由 `pythonBin` 指定,或按 `lib/runtime.ts` 的固定链找到:`dataDir/runtime` 下的托管 runtime → 仓内 `_env/.venv` → `PATH`。装出去的包里没有 `_env/.venv` 这一档,所以跑过 `setup --feature core --apply` 的机器用的是那支托管解释器,没装过就是你 `PATH` 上的 `python3`(Windows 上是 `python`);选中哪一支会在装载时写进日志,缺 Scrapling 时报错里带着可直接照抄的安装命令。
81
81
 
82
82
  ```sh
@@ -105,7 +105,7 @@ dsh-scrapling setup --status
105
105
  ```
106
106
 
107
107
  - `core` 装托管 Python 3.14.9、Scrapling 0.5 与钉死的 wheel;`browser` 再加完整 Chromium(不是 headless shell)。
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`。
108
+ - `search`、`media`、`mcp` 与 `adaptive-redis` 都以 `core` 的 venv 为载体:`mcp` 带来 `official-mcp` 模式要的官方 `scrapling-mcp` server(随钉住的 `mcp` 包进来;它的工具集由上游决定,不是本插件的面),`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
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`。
@@ -230,7 +230,8 @@ dsh-scrapling setup --status
230
230
  要接进 dsh 需要 `@deepseek-ai/dsh-mcp-client`,本插件刻意不依赖它。装与当期宿主同一条线的版本 —— npm 的 `latest` 比宿主还旧,宿主对不匹配的对端是直接拒绝:
231
231
 
232
232
  ```bash
233
- dsh plugin --profile <名> add @deepseek-ai/dsh-mcp-client@0.2.1-rc.3
233
+ dsh plugin --profile <名> add @deepseek-ai/dsh-mcp-client@0.2.2-alpha.3
234
+ # 宿主在 0.2.1-rc.5 线时改用 @deepseek-ai/dsh-mcp-client@0.2.1-rc.5
234
235
  ```
235
236
 
236
237
  再往那个 profile 的 `cordis.patch.yml` 加一条(没配 token 就不写 `headers`):
@@ -263,7 +264,7 @@ dsh-scrapling setup --mode native --apply # 写出的文件里一条条目
263
264
  dsh-scrapling doctor --mode mcp --profile <profileDir>
264
265
  ```
265
266
 
266
- `doctor` 读的是 profile 自己写下的东西 —— `cordis.patch.yml` 加那份 `package.json` —— 每处问题打一行:`serverName: scrapling` 下有两条例目、本插件的条目与官方 `stdio` 那条并存、条目类型与模式不符、条目的端口与 `--port` 说的不一致、profile 里没有 `@deepseek-ai/dsh-mcp-client` 或它钉的不是 `0.2.1-rc.3` / `next`、以及 `officialMcpEnabled` 关着却留着官方条目。退 `0` 是一致,`1` 是至少点出一处,`2` 是参数不对。`integrationMode` 本身是插件设置,CLI 读不到,所以 `--mode` 就是被核对的那一句声明,它必须和部署配置说的是同一件事。
267
+ `doctor` 读的是 profile 自己写下的东西 —— `cordis.patch.yml` 加那份 `package.json` —— 每处问题打一行:`serverName: scrapling` 下有两条例目、本插件的条目与官方 `stdio` 那条并存、条目类型与模式不符、条目的端口与 `--port` 说的不一致、profile 里没有 `@deepseek-ai/dsh-mcp-client` 或它钉的不是 `0.2.2-alpha.3` / `0.2.1-rc.5` / `next`、以及 `officialMcpEnabled` 关着却留着官方条目。退 `0` 是一致,`1` 是至少点出一处,`2` 是参数不对。`integrationMode` 本身是插件设置,CLI 读不到,所以 `--mode` 就是被核对的那一句声明,它必须和部署配置说的是同一件事。
267
268
 
268
269
  `official-mcp` 要两处分开表态才会产出:profile 里的 `officialMcpEnabled: true`,以及命令行的 `--accept-risk`;缺任何一处只打 `OFFICIAL_MCP_DISABLED` / `RISK_NOT_ACCEPTED`,一个字节都不写。它生成的条目起的是 `<dataDir>/runtime/venv/bin/scrapling-mcp`,所以要先跑 `setup --feature mcp --apply` —— 见[运行时能力包](#运行时能力包macos-arm64)。那枚二进制不存在时,`setup` 会额外打一行说明这条条目现在起不来。
269
270
 
@@ -297,7 +298,7 @@ dsh-scrapling doctor --mode mcp --profile <profileDir>
297
298
  | `syntheticDnsRanges` | string | `""` | 合成 DNS 的手动兜底:填代理 fake-IP 池的 CIDR(逗号分隔),留给把合成地址与真地址混着返回的解析器。写错的段直接丢掉 —— 兜底坏了退化成「维持最严」,不该崩 |
298
299
  | `proxyUrl` | string | `""` | 抓取从哪儿出去(`http://…` / `socks5://…`,可带 `user:pass@`)。留空 = 跟随环境,见[代理](#代理)。卡上遮罩显示,绝不进入工具 schema |
299
300
  | `proxyBypass` | string | `""` | 直连、不走代理的主机名,对应 `NO_PROXY`;填 `*` 表示整台机器直连 |
300
- | `nat64Prefixes` | string | `""` | 额外的 NAT64 前缀(逗号分隔的 CIDR),给运营商自建网络用;声明的前缀对所有 IPv6 地址生效 |
301
+ | `nat64Prefixes` | string | `""` | 额外的 NAT64 前缀(逗号分隔的 `<IPv6 前缀>/<32\|40\|48\|56\|64\|96>`),给运营商自建网络用。每个 IPv6 应答都会查这张表,声明的前缀对它覆盖范围内的地址生效。写错的项会让插件**拒绝装载**(`CONFIG_INVALID`),与下面 `syntheticDnsRanges` 的「丢掉」不同:丢掉一个前缀等于把藏在 IPv6 里的私网 IPv4 当成普通公网 IPv6 放行 |
301
302
 
302
303
  **部署级旋钮**(不在卡上,只走 `cordis.patch.yml` 的 `config:` 块):
303
304