Repository navigation
chore(proxy): purge the legacy 1proxy residue — sync/rotator modules, dead DB exports, dead settings tab and flag, docs - #12290
Merged
Conversation
… 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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/andtests/:src/lib/oneproxySync.ts(182L),src/lib/oneproxyRotator.ts(19L),src/shared/validation/oneproxySchemas.ts, and the unmountedsettings/components/OneproxyTab.tsx(404L — no importer; the live UI is the FreePool* tabs over/api/settings/free-proxies).src/lib/db/oneproxy.tsslimmed:upsertOneproxyProxy,getOneproxyProxyById,getOneproxyProxyForRotation,markOneproxyProxyFailedremoved (only consumers were the deleted modules).listOneproxyProxies+ the record interface stay —open-sse/utils/proxyFallback.tsuses them.ONEPROXY_ENABLEDfeature flag removed — readerless sinceoneproxySyncdied; the settings toggle controlled nothing. Flag-count contract test aligned 54 → 53 (documented in the test comment).omniroute/oneproxyRotatorsnippet sections + reworded follow-up paragraph), CODEBASE_DOCUMENTATION, REPOSITORY_MAP, ENVIRONMENT (ONEPROXY_*rows), FEATURE_FLAGS,.env.example— canonical + pl/zh-CN/zh-TW mirrors./api/settings/oneproxy/, the live free-proxy provider (freeProxyProviders/oneproxy.ts) andproxy_registrydata; thesettings.oneproxySync*i18n keys (pinned byi18n-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 ondeadExportsgrows 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)feature-flags-settings77/77; the 8 free-proxy/proxy-fallback suites 78/78.Closes #12091