chore: update deps and pi model discovery

This commit is contained in:
Peter Steinberger
2026-01-31 06:40:45 +01:00
parent 85dd070dea
commit 08ed62852a
32 changed files with 1424 additions and 1419 deletions

View File

@@ -9,10 +9,10 @@ export async function writeOAuthCredentials(
creds: OAuthCredentials,
agentDir?: string,
): Promise<void> {
// Write to resolved agent dir so gateway finds credentials on startup.
const email = typeof creds.email === "string" ? creds.email.trim() : "";
const email =
typeof creds.email === "string" && creds.email.trim() ? creds.email.trim() : "default";
upsertAuthProfile({
profileId: `${provider}:${email || "default"}`,
profileId: `${provider}:${email}`,
credential: {
type: "oauth",
provider,