File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 快照调试信息 |
Original file line number Diff line number Diff line change @@ -281,9 +281,6 @@ export function fetchAdapters() {
281281function 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' ;
You can’t perform that action at this time.
0 commit comments