chore(auth): rename Claude CLI to Claude Code CLI (#915)

Thanks @SeanZoR.

Co-authored-by: Sean Katz <connect@sean8.com>
This commit is contained in:
Peter Steinberger
2026-01-14 19:57:42 +00:00
parent b4ba6e4eaf
commit e943e63174
4 changed files with 7 additions and 11 deletions

View File

@@ -4,6 +4,7 @@
### Changes ### Changes
- Usage: add MiniMax coding plan usage tracking. - Usage: add MiniMax coding plan usage tracking.
- Auth: rename “Claude CLI” to “Claude Code CLI” in auth options. (#915) — thanks @SeanZoR.
### Fixes ### Fixes
- Gateway/Dev: ensure `pnpm gateway:dev` always uses the dev profile config + state (`~/.clawdbot-dev`). - Gateway/Dev: ensure `pnpm gateway:dev` always uses the dev profile config + state (`~/.clawdbot-dev`).

View File

@@ -42,7 +42,7 @@ const AUTH_CHOICE_GROUP_DEFS: {
{ {
value: "anthropic", value: "anthropic",
label: "Anthropic", label: "Anthropic",
hint: "Claude CLI + API key", hint: "Claude Code CLI + API key",
choices: ["claude-cli", "setup-token", "token", "apiKey"], choices: ["claude-cli", "setup-token", "token", "apiKey"],
}, },
{ {
@@ -138,13 +138,13 @@ export function buildAuthChoiceOptions(params: {
if (claudeCli?.type === "oauth" || claudeCli?.type === "token") { if (claudeCli?.type === "oauth" || claudeCli?.type === "token") {
options.push({ options.push({
value: "claude-cli", value: "claude-cli",
label: "Anthropic token (Claude CLI)", label: "Anthropic token (Claude Code CLI)",
hint: formatOAuthHint(claudeCli.expires), hint: formatOAuthHint(claudeCli.expires),
}); });
} else if (params.includeClaudeCliIfMissing && platform === "darwin") { } else if (params.includeClaudeCliIfMissing && platform === "darwin") {
options.push({ options.push({
value: "claude-cli", value: "claude-cli",
label: "Anthropic token (Claude CLI)", label: "Anthropic token (Claude Code CLI)",
hint: "requires Keychain access", hint: "requires Keychain access",
}); });
} }

View File

@@ -133,8 +133,7 @@ export async function processDiscordMessage(ctx: DiscordMessagePreflightContext)
}); });
let shouldClearHistory = false; let shouldClearHistory = false;
const shouldIncludeChannelHistory = const shouldIncludeChannelHistory =
!isDirectMessage && !isDirectMessage && !(isGuildMessage && channelConfig?.autoThread && !threadChannel);
!(isGuildMessage && channelConfig?.autoThread && !threadChannel);
if (shouldIncludeChannelHistory) { if (shouldIncludeChannelHistory) {
combinedBody = buildHistoryContextFromMap({ combinedBody = buildHistoryContextFromMap({
historyMap: guildHistories, historyMap: guildHistories,

View File

@@ -269,9 +269,7 @@ describe("sendMessageTelegram caption splitting", () => {
message_id: 80, message_id: 80,
chat: { id: chatId }, chat: { id: chatId },
}); });
const sendMessage = vi const sendMessage = vi.fn().mockRejectedValue(new Error("400: Bad Request: chat not found"));
.fn()
.mockRejectedValue(new Error("400: Bad Request: chat not found"));
const api = { sendPhoto, sendMessage } as unknown as { const api = { sendPhoto, sendMessage } as unknown as {
sendPhoto: typeof sendPhoto; sendPhoto: typeof sendPhoto;
sendMessage: typeof sendMessage; sendMessage: typeof sendMessage;
@@ -289,9 +287,7 @@ describe("sendMessageTelegram caption splitting", () => {
api, api,
mediaUrl: "https://example.com/photo.jpg", mediaUrl: "https://example.com/photo.jpg",
}), }),
).rejects.toThrow( ).rejects.toThrow(/Telegram send failed: chat not found \(chat_id=123\)\./);
/Telegram send failed: chat not found \(chat_id=123\)\./,
);
}); });
it("does not send follow-up text when caption is empty", async () => { it("does not send follow-up text when caption is empty", async () => {