Skip to content

chore(proxy): purge the legacy 1proxy residue — sync/rotator modules, dead DB exports, dead settings tab and flag, docs - #12290

Merged
diegosouzapw merged 1 commit into
release/v3.8.51from
chore/12091-oneproxy-purge
Sep 1, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.51from
chore/12091-oneproxy-purge

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Summary

Executes #12091: removes everything the decommissioned 1proxy marketplace integration (v3.8.4) left behind, all of it grep-proven to have zero consumers across src/, open-sse/, bin/, electron/, scripts/ and tests/:

  • Deleted: src/lib/oneproxySync.ts (182L), src/lib/oneproxyRotator.ts (19L), src/shared/validation/oneproxySchemas.ts, and the unmounted settings/components/OneproxyTab.tsx (404L — no importer; the live UI is the FreePool* tabs over /api/settings/free-proxies).
  • src/lib/db/oneproxy.ts slimmed: upsertOneproxyProxy, getOneproxyProxyById, getOneproxyProxyForRotation, markOneproxyProxyFailed removed (only consumers were the deleted modules). listOneproxyProxies + the record interface stay — open-sse/utils/proxyFallback.ts uses them.
  • ONEPROXY_ENABLED feature flag removed — readerless since oneproxySync died; the settings toggle controlled nothing. Flag-count contract test aligned 54 → 53 (documented in the test comment).
  • Docs: PROXY_GUIDE (component rows, env rows, the 3 omniroute/oneproxyRotator snippet sections + reworded follow-up paragraph), CODEBASE_DOCUMENTATION, REPOSITORY_MAP, ENVIRONMENT (ONEPROXY_* rows), FEATURE_FLAGS, .env.example — canonical + pl/zh-CN/zh-TW mirrors.
  • Kept deliberately: the 308 compat redirects under /api/settings/oneproxy/, the live free-proxy provider (freeProxyProviders/oneproxy.ts) and proxy_registry data; the settings.oneproxySync* i18n keys (pinned by i18n-hardcoded-ui-regressions.test.ts).

Validation

  • check:dead-code: 424 → 417 dead symbols. Baseline left at the velocity-phase 500 — banking shrinks is paused until v4.0 (_policy), so the headroom on deadExports grows 15.2% → 16.6% (helps 📈 Baseline headroom (velocity phase) #12149).
  • check:docs-all (incl. fabricated-docs) ✅ · check:env-doc-sync ✅ · typecheck:core ✅ · ESLint CI-mode on touched files ✅
  • check:complexity-ratchets --base-ref: new-code 0 (the touched-file total actually drops 2 → 1)
  • Tests: feature-flags-settings 77/77; the 8 free-proxy/proxy-fallback suites 78/78.

Closes #12091

… dead DB exports, dead settings tab and flag, docs (#12091)

The 1proxy marketplace integration was decommissioned in v3.8.4; the code
survived only through the localDb barrel, deleted in #12055. Everything below
had zero consumers (grep-proven across src/, open-sse/, bin/, electron/,
scripts/ and tests/):

- src/lib/oneproxySync.ts and src/lib/oneproxyRotator.ts deleted.
- src/lib/db/oneproxy.ts: upsertOneproxyProxy, getOneproxyProxyById,
  getOneproxyProxyForRotation and markOneproxyProxyFailed removed (their only
  consumers were the two deleted modules); listOneproxyProxies and the record
  interface stay — open-sse/utils/proxyFallback.ts still uses them.
- src/shared/validation/oneproxySchemas.ts and the unmounted
  settings/components/OneproxyTab.tsx deleted (no importer anywhere; the live
  UI is the FreePool* tabs over /api/settings/free-proxies).
- ONEPROXY_ENABLED feature flag removed (readerless since oneproxySync died —
  the toggle no longer controlled anything); flag-count contract test aligned
  54 → 53.
- Docs: PROXY_GUIDE (component rows, env rows, the three omniroute/
  oneproxyRotator snippet sections), CODEBASE_DOCUMENTATION, REPOSITORY_MAP,
  ENVIRONMENT (ONEPROXY_* rows), FEATURE_FLAGS, .env.example — canonical +
  pl/zh-CN/zh-TW mirrors.
- The 308 compat redirects under /api/settings/oneproxy/ stay (deliberate API
  compat), as do the live free-proxy provider and proxy_registry rows.

check:dead-code drops 424 → 417 (baseline kept at the velocity-phase 500 —
banking shrinks is paused until v4.0, headroom grows to 16.6%).
check:docs-all, check:env-doc-sync, typecheck:core and the 8 free-proxy/
proxy-fallback test files are green.

Closes #12091
@diegosouzapw
diegosouzapw merged commit 412298b into release/v3.8.51 Sep 1, 2026
21 checks passed
@diegosouzapw
diegosouzapw deleted the chore/12091-oneproxy-purge branch September 1, 2026 12:23
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
… dead DB exports, dead settings tab and flag, docs (cheaper-inference#12091) (cheaper-inference#12290)

The 1proxy marketplace integration was decommissioned in v3.8.4; the code
survived only through the localDb barrel, deleted in cheaper-inference#12055. Everything below
had zero consumers (grep-proven across src/, open-sse/, bin/, electron/,
scripts/ and tests/):

- src/lib/oneproxySync.ts and src/lib/oneproxyRotator.ts deleted.
- src/lib/db/oneproxy.ts: upsertOneproxyProxy, getOneproxyProxyById,
  getOneproxyProxyForRotation and markOneproxyProxyFailed removed (their only
  consumers were the two deleted modules); listOneproxyProxies and the record
  interface stay — open-sse/utils/proxyFallback.ts still uses them.
- src/shared/validation/oneproxySchemas.ts and the unmounted
  settings/components/OneproxyTab.tsx deleted (no importer anywhere; the live
  UI is the FreePool* tabs over /api/settings/free-proxies).
- ONEPROXY_ENABLED feature flag removed (readerless since oneproxySync died —
  the toggle no longer controlled anything); flag-count contract test aligned
  54 → 53.
- Docs: PROXY_GUIDE (component rows, env rows, the three omniroute/
  oneproxyRotator snippet sections), CODEBASE_DOCUMENTATION, REPOSITORY_MAP,
  ENVIRONMENT (ONEPROXY_* rows), FEATURE_FLAGS, .env.example — canonical +
  pl/zh-CN/zh-TW mirrors.
- The 308 compat redirects under /api/settings/oneproxy/ stay (deliberate API
  compat), as do the live free-proxy provider and proxy_registry rows.

check:dead-code drops 424 → 417 (baseline kept at the velocity-phase 500 —
banking shrinks is paused until v4.0, headroom grows to 16.6%).
check:docs-all, check:env-doc-sync, typecheck:core and the 8 free-proxy/
proxy-fallback test files are green.

Closes cheaper-inference#12091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(proxy): purge the legacy 1proxy residue (oneproxySync/oneproxyRotator + 3 DB exports + docs) now that the localDb barrel is gone

1 participant