Skip to content

feat: Rename server to endpoint throughout codebase - #616

Merged
razor-x merged 2 commits into
mainfrom
claude/rename-server-to-endpoint-jcwv9n
Aug 12, 2026
Merged

feat: Rename server to endpoint throughout codebase#616
razor-x merged 2 commits into
mainfrom
claude/rename-server-to-endpoint-jcwv9n

Conversation

@razor-x

@razor-x razor-x commented Aug 12, 2026

Copy link
Copy Markdown
Member

This PR renames all references to "server" to "endpoint" throughout the codebase to better reflect the terminology used in the Seam API.

Summary

Updated terminology from "server" to "endpoint" across the CLI, configuration, authentication, and interaction layers. This includes renaming functions, variables, configuration keys, command paths, and user-facing messages.

Key Changes

  • Auth operations: Renamed selectServer() to selectEndpoint(), selectFakeServer() to selectFakeEndpoint(), and updated related function parameters and variables
  • Configuration keys: Changed storage key from server to endpoint in config store, with backward compatibility to read from legacy server key
  • Context/Auth types: Renamed AuthContext.server to AuthContext.endpoint and serverSource to endpointSource; updated defaultServer to defaultEndpoint
  • Commands: Renamed select server command to select endpoint and config set fake-server to config set fake-endpoint
  • Interactions: Renamed interactForServerSelection() to interactForEndpointSelection() and updated related prompts and messages
  • Tests: Updated all test files to use endpoint terminology and verify backward compatibility with legacy server key
  • Documentation: Updated README and code comments to reference "endpoint" instead of "server"

Implementation Details

  • Added storeEndpoint() helper function that handles writing the endpoint, clearing the legacy server key, and resetting workspace selection
  • Maintained backward compatibility by having resolveAuth() fall back to reading from the legacy server config key if endpoint is not set
  • Added test coverage for reading endpoints stored under the legacy server key and verifying the new key takes precedence
  • Updated error messages and user-facing text to use "endpoint" terminology consistently

https://claude.ai/code/session_01EGei65aQbdcHScx5QyuGKZ

claude added 2 commits August 12, 2026 01:50
The CLI already called this the endpoint in the environment
(SEAM_CLI_ENDPOINT) and in the SDK options it builds, while the command,
the flags, the stored key, and the prose called it the server. Settle on
endpoint everywhere:

- `seam select server --server` is now `seam select endpoint --endpoint`,
  `seam login --server` is now `seam login --endpoint`, and the hidden
  `seam config set fake-server` is now `seam config set fake-endpoint`.
- The stored settings key `server` is now `endpoint`. Configs written
  under the old key are still read, and the next write drops it.
- `AuthContext.server`/`serverSource`, `selectServer`, `selectFakeServer`,
  `defaultServer`, and the modules holding them follow the same name, as
  do the help text, the prompts, and the docs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EGei65aQbdcHScx5QyuGKZ
It was a development shortcut that pointed the CLI at a generated
fakeseamconnect instance and logged in with the well-known token, kept
out of help, completion, and the picker. The same thing is reachable
through `seam select endpoint`, which offers fakeseamconnect as a choice
and generates the same URL and token, so the hidden path only duplicated
a visible one.

`selectFakeEndpoint` stays: that interactive flow still calls it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EGei65aQbdcHScx5QyuGKZ
@razor-x
razor-x marked this pull request as ready for review August 12, 2026 03:38
@razor-x razor-x changed the title Rename server to endpoint throughout codebase feat: Rename server to endpoint throughout codebase Aug 12, 2026
@razor-x
razor-x merged commit 4b43b4d into main Aug 12, 2026
14 checks passed
@razor-x
razor-x deleted the claude/rename-server-to-endpoint-jcwv9n branch August 12, 2026 03:51
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.

2 participants