fix: restore cloud agent provider exports and logger import (#2138)

Integrated into release/v3.8.0 — cloud agent provider exports and logger import fixes were already present in the release branch. Thank you for the quick response to the crash report!
This commit is contained in:
backryun
2026-05-11 09:20:39 +09:00
committed by GitHub
parent 72fb5460d0
commit 110fa35d04
2 changed files with 32 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { AutoVariant } from "./autoPrefix";
import { getProviderConnections } from "@/lib/db/providers";
import { getProviderRegistry } from "./providerRegistryAccessor";
import type { ConnectionFields } from "@/lib/db/encryption";
import { log } from "@omniroute/open-sse/utils/logger";
import { defaultLogger as log } from "@omniroute/open-sse/utils/logger";
/** Minimal connection shape needed for virtual auto-combo factory */
interface VirtualFactoryConn extends ConnectionFields {

View File

@@ -1880,6 +1880,37 @@ export function isSelfHostedChatProvider(providerId: unknown): boolean {
return typeof providerId === "string" && SELF_HOSTED_CHAT_PROVIDER_IDS.has(providerId);
}
// ── Cloud Agent Providers ───────────────────────────────────────────────────
export const CLOUD_AGENT_PROVIDERS = {
jules: {
id: "jules",
alias: "jules",
name: "Jules",
icon: "engineering",
color: "#EAB308",
textIcon: "JU",
website: "https://jules.google.com",
},
devin: {
id: "devin",
alias: "devin",
name: "Devin",
icon: "smart_toy",
color: "#2563EB",
textIcon: "DV",
website: "https://devin.ai",
},
"codex-cloud": {
id: "codex-cloud",
alias: "codex-cloud",
name: "Codex Cloud",
icon: "code",
color: "#10B981",
textIcon: "CX",
website: "https://chatgpt.com/codex",
},
};
// ── System Providers (virtual, not user-connectable) ──────────────────────────
export const SYSTEM_PROVIDERS = {
auto: {