auth: say 'login server' not 'core' in user-facing text · Entire

auth: say 'login server' not 'core' in user-facing text

0caa415main·

toothbrush·1mo ago·4 files·+6 added/-6 removed

Rename the contexts-table column header to LOGIN SERVER, reword the logout --everywhere/--all-contexts help, and the TLS-check error so we never surface the internal 'core' term to users.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Sessions

0b31c2ff9960View transcript

[?
Replace Internal 'Core' Term With 'Login Server'Claude Code·Opus 4.8[1m]·1 step](/content/gh/entireio/cli/session/bd876c37-a70a-4eb9-b6cd-8b9bb8eb626c#timeline-0b31c2ff9960/index.html)

Changes

4

171 unmodified lines

172
173
174
175
175
176
177
178

171 unmodified lines

// too (it may differ from AuthBaseURL when a context is active).
if !insecureHTTPAuth {
    if err := api.RequireSecureURL(target.coreURL); err != nil {
        return fmt.Errorf("context core URL check: %w", err)
        return fmt.Errorf("context login server URL check: %w", err)
    }
}
return runAuthStatus(cmd.Context(), cmd.OutOrStdout(), defaultFetchProfile, defaultListAuthSessions, target)

Mcmd/entire/cli/auth.go+1/-1

106 unmodified lines

107
108
109
110
110
111
112
113

106 unmodified lines

"", // active marker
    sty.render(sty.header, "CONTEXT"),
    sty.render(sty.header, "HANDLE"),
    sty.render(sty.header, "CORE URL"),
    sty.render(sty.header, "LOGIN SERVER"),
}

rows := make([][]string, 0, len(all))

Mcmd/entire/cli/auth_context.go+1/-1

72 unmodified lines

73
74
75
76
76
77
78
79

72 unmodified lines

t.Fatalf("runAuthContexts: %v", err)
}
got := out.String()
for _, hdr := range []string{"CONTEXT", "HANDLE", "CORE URL"} {
for _, hdr := range []string{"CONTEXT", "HANDLE", "LOGIN SERVER"} {
        if !strings.Contains(got, hdr) {
            t.Fatalf("listing = %q, want column header %q", got, hdr)
        }
}

Mcmd/entire/cli/auth_context_test.go+1/-1

43 unmodified lines

44
45
46
47
47
48
49
50
51
52
52
53
54
55
20 unmodified lines

76
77
78
79
79
80
81
82

43 unmodified lines

"active login from this machine. Other saved logins (contexts) remain and can\n" +
        "still authenticate `git clone entire://…` against clusters fronted by their\n" +
        "login server.\n\n" +
        "Pass --everywhere to revoke every session on the active core server-side\n" +
        "Pass --everywhere to revoke every session on the active login server\n" +
        "(all your devices), not just the current one.\n\n" +
        "Pass --all-contexts to log out of every saved login (context) at once: each\n" +
        "context's session is revoked server-side and the login is removed from this\n" +
        "machine. Combine with --everywhere to revoke every session on every context's\n" +
        "core.\n\n" +
        "login server.\n\n" +
        "Without --all-contexts, logging out promotes the next saved login (if any) to\n" +
        "active, so running `entire logout` repeatedly drains every saved login in turn.",
    RunE: func(cmd *cobra.Command, _ []string) error {
20 unmodified lines

target := resolveStatusTarget(auth.NewContextStore(), auth.Contexts, api.AuthBaseURL())
    if !insecureHTTPAuth {
        if err := api.RequireSecureURL(target.coreURL); err != nil {
            return fmt.Errorf("context core URL check: %w", err)
            return fmt.Errorf("context login server URL check: %w", err)
        }
    }
    revokeCurrent := func(ctx context.Context) error {

Mcmd/entire/cli/logout.go+3/-3