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:
@@ -42,7 +42,7 @@ const AUTH_CHOICE_GROUP_DEFS: {
|
||||
{
|
||||
value: "anthropic",
|
||||
label: "Anthropic",
|
||||
hint: "Claude CLI + API key",
|
||||
hint: "Claude Code CLI + API key",
|
||||
choices: ["claude-cli", "setup-token", "token", "apiKey"],
|
||||
},
|
||||
{
|
||||
@@ -138,13 +138,13 @@ export function buildAuthChoiceOptions(params: {
|
||||
if (claudeCli?.type === "oauth" || claudeCli?.type === "token") {
|
||||
options.push({
|
||||
value: "claude-cli",
|
||||
label: "Anthropic token (Claude CLI)",
|
||||
label: "Anthropic token (Claude Code CLI)",
|
||||
hint: formatOAuthHint(claudeCli.expires),
|
||||
});
|
||||
} else if (params.includeClaudeCliIfMissing && platform === "darwin") {
|
||||
options.push({
|
||||
value: "claude-cli",
|
||||
label: "Anthropic token (Claude CLI)",
|
||||
label: "Anthropic token (Claude Code CLI)",
|
||||
hint: "requires Keychain access",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -133,8 +133,7 @@ export async function processDiscordMessage(ctx: DiscordMessagePreflightContext)
|
||||
});
|
||||
let shouldClearHistory = false;
|
||||
const shouldIncludeChannelHistory =
|
||||
!isDirectMessage &&
|
||||
!(isGuildMessage && channelConfig?.autoThread && !threadChannel);
|
||||
!isDirectMessage && !(isGuildMessage && channelConfig?.autoThread && !threadChannel);
|
||||
if (shouldIncludeChannelHistory) {
|
||||
combinedBody = buildHistoryContextFromMap({
|
||||
historyMap: guildHistories,
|
||||
|
||||
@@ -269,9 +269,7 @@ describe("sendMessageTelegram caption splitting", () => {
|
||||
message_id: 80,
|
||||
chat: { id: chatId },
|
||||
});
|
||||
const sendMessage = vi
|
||||
.fn()
|
||||
.mockRejectedValue(new Error("400: Bad Request: chat not found"));
|
||||
const sendMessage = vi.fn().mockRejectedValue(new Error("400: Bad Request: chat not found"));
|
||||
const api = { sendPhoto, sendMessage } as unknown as {
|
||||
sendPhoto: typeof sendPhoto;
|
||||
sendMessage: typeof sendMessage;
|
||||
@@ -289,9 +287,7 @@ describe("sendMessageTelegram caption splitting", () => {
|
||||
api,
|
||||
mediaUrl: "https://example.com/photo.jpg",
|
||||
}),
|
||||
).rejects.toThrow(
|
||||
/Telegram send failed: chat not found \(chat_id=123\)\./,
|
||||
);
|
||||
).rejects.toThrow(/Telegram send failed: chat not found \(chat_id=123\)\./);
|
||||
});
|
||||
|
||||
it("does not send follow-up text when caption is empty", async () => {
|
||||
|
||||
Reference in New Issue
Block a user