Skip to content

Commit 79a15e8

Browse files
authored
Remove unused OPENCLI_SKIP_FETCH env var (#987)
The adapter sync already has version caching (skips if same version) and makes no network requests, so this opt-out flag adds no value.
1 parent 6d769ff commit 79a15e8

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ OpenCLI is not only for websites. It can also:
154154
| `OPENCLI_CDP_TARGET` || Filter CDP targets by URL substring (e.g. `detail.1688.com`) |
155155
| `OPENCLI_VERBOSE` | `false` | Enable verbose logging (`-v` flag also works) |
156156
| `OPENCLI_DIAGNOSTIC` | `false` | Set to `1` to capture structured diagnostic context on failures |
157-
| `OPENCLI_SKIP_FETCH` || Set to `1` to skip adapter sync during `npm install -g` |
158157
| `OUTPUT` || Override output format: `json`, `yaml`, or `table` |
159158
| `DEBUG` || Set to `opencli` for internal debug logging |
160159
| `DEBUG_SNAPSHOT` || Set to `1` for DOM snapshot debug output |

README.zh-CN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ OpenCLI 不只是网站 CLI,还可以:
142142
| `OPENCLI_CDP_TARGET` || 按 URL 子串过滤 CDP target(如 `detail.1688.com`|
143143
| `OPENCLI_VERBOSE` | `false` | 启用详细日志(`-v` 也可以) |
144144
| `OPENCLI_DIAGNOSTIC` | `false` | 设为 `1` 时在失败时输出结构化诊断上下文 |
145-
| `OPENCLI_SKIP_FETCH` || 设为 `1` 跳过 `npm install -g` 时的适配器同步 |
146145
| `OUTPUT` || 覆盖输出格式:`json``yaml``table` |
147146
| `DEBUG` || 设为 `opencli` 开启内部调试日志 |
148147
| `DEBUG_SNAPSHOT` || 设为 `1` 输出 DOM 快照调试信息 |

scripts/fetch-adapters.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ export function fetchAdapters() {
281281
function main() {
282282
// Skip in CI
283283
if (process.env.CI || process.env.CONTINUOUS_INTEGRATION) return;
284-
// Allow opt-out
285-
if (process.env.OPENCLI_SKIP_FETCH === '1') return;
286-
287284
// Only run on global install, explicit trigger, or first-run fallback
288285
const isGlobal = process.env.npm_config_global === 'true';
289286
const isExplicit = process.env.OPENCLI_FETCH === '1';

0 commit comments

Comments
 (0)