diff --git a/extensions/qqbot/src/engine/session/session-store.ts b/extensions/qqbot/src/engine/session/session-store.ts index 8701090bd51..7d374cec79f 100644 --- a/extensions/qqbot/src/engine/session/session-store.ts +++ b/extensions/qqbot/src/engine/session/session-store.ts @@ -213,14 +213,6 @@ export function clearSession(accountId: string): void { } } -/** Update only lastSeq on the persisted session. */ -export function updateLastSeq(accountId: string, lastSeq: number): void { - const existing = loadSession(accountId); - if (existing?.sessionId) { - saveSession({ ...existing, lastSeq }); - } -} - /** Load all saved sessions from disk. */ export function getAllSessions(): SessionState[] { const sessions = new Map(); diff --git a/extensions/tlon/src/urbit/send.ts b/extensions/tlon/src/urbit/send.ts index 70a16ce57d3..f8122f99e68 100644 --- a/extensions/tlon/src/urbit/send.ts +++ b/extensions/tlon/src/urbit/send.ts @@ -151,18 +151,6 @@ export async function sendGroupMessageWithStory({ return { channel: "tlon", messageId: `${fromShip}/${sentAt}` }; } -export function buildMediaText(text: string | undefined, mediaUrl: string | undefined): string { - const cleanText = text?.trim() ?? ""; - const cleanUrl = mediaUrl?.trim() ?? ""; - if (cleanText && cleanUrl) { - return `${cleanText}\n${cleanUrl}`; - } - if (cleanUrl) { - return cleanUrl; - } - return cleanText; -} - /** * Build a story with text and optional media (image) */ diff --git a/extensions/xai/src/responses-tool-shared.ts b/extensions/xai/src/responses-tool-shared.ts index 87bfc2c1f0b..44070a04e73 100644 --- a/extensions/xai/src/responses-tool-shared.ts +++ b/extensions/xai/src/responses-tool-shared.ts @@ -18,7 +18,7 @@ function extractUrlCitations(annotations: unknown): string[] { .map((annotation) => annotation.url as string); } -export const XAI_RESPONSES_BASE_URL = "https://api.x.ai/v1"; +const XAI_RESPONSES_BASE_URL = "https://api.x.ai/v1"; export const XAI_RESPONSES_ENDPOINT = `${XAI_RESPONSES_BASE_URL}/responses`; function trimString(value: unknown): string | undefined {