Skip to content

refactor: rename the codev-proxy surface to "backend" - #164

Merged
quickbeard merged 1 commit into
mainfrom
refactor/rename-codev-proxy-to-backend
Jun 12, 2026
Merged

refactor: rename the codev-proxy surface to "backend"#164
quickbeard merged 1 commit into
mainfrom
refactor/rename-codev-proxy-to-backend

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

Renames the codev-proxy concept to backend across the codebase — identifiers, comments, log labels, and error text — per the agreed scope. ("proxy url → backend url" was already settled when the hidden custom-proxy-URL step was removed in #163; the constant is BACKEND_URL.)

Changes

Code identifiers

  • src/lib/proxy.tssrc/lib/backend.ts (and tests/lib/proxy.test.tstests/lib/backend.test.ts)
  • All @/lib/proxy.js imports → @/lib/backend.js (6 source files)
  • Test namespace import * as proxybackend and every vi.spyOn(proxy, …)vi.spyOn(backend, …) (5 test files)
  • PROXY_TIMEOUT_MSBACKEND_TIMEOUT_MS

Strings (per the "labels + error text" scope decision)

  • Log endpoint labels "proxy.auth-exchange" / "proxy.config" / "proxy.supabase-exchange""backend.*"
  • Thrown error prefixes "Proxy /… failed""Backend /… failed" (+ all tests pinning them)

Comments

  • Reworded codev-proxy/proxy references to "backend" (log.ts, upload.ts, supabase.ts, auth.ts, AGENTS.md, a couple of test descriptions)
  • Fixed a stale upload.ts comment that still referenced the removed custom proxy-URL

Intentionally NOT changed

  • The live route ${BASE_URL}/codev-proxy and every url.includes("/codev-proxy/…") test matcher / fixture URL — that's the deployed server contract.
  • Generic/corporate network-proxy mentions unrelated to our backend: Login.tsx, vscode.ts, vscode.test.ts, and the Continue-marketplace "Proxy returned 502" test in InstallApp.test.tsx.

Validation

  • pnpm fix — clean (Biome reordered imports in the renamed files)
  • pnpm typecheck — clean
  • pnpm test — 720 passed / 50 files
  • pnpm build && node dist/index.js --version0.3.7

🤖 Generated with Claude Code

Rename the codev-proxy concept to "backend" across identifiers, comments,
log labels, and error text. The live HTTP route /codev-proxy and the
generic network-proxy mentions (Login/vscode error causes, the Continue
marketplace test) are intentionally left untouched.

- src/lib/proxy.ts -> src/lib/backend.ts (and the matching test file);
  update all @/lib/proxy.js imports and the `import * as proxy` /
  `spyOn(proxy, …)` test namespaces to `backend`.
- PROXY_TIMEOUT_MS -> BACKEND_TIMEOUT_MS.
- Log endpoint labels "proxy.*" -> "backend.*"; thrown error prefixes
  "Proxy /… failed" -> "Backend /… failed"; update the tests pinning them.
- Reword codev-proxy/proxy comments to "backend" (log, upload, supabase,
  auth, AGENTS.md); fix a stale upload.ts comment that referenced the
  removed custom proxy-URL.

Kept: the `${BASE_URL}/codev-proxy` route and every `/codev-proxy/…` test
matcher/fixture (deployed server contract).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 0c42233 into main Jun 12, 2026
4 checks passed
@quickbeard
quickbeard deleted the refactor/rename-codev-proxy-to-backend branch June 12, 2026 09:16
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.

1 participant