mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 13:52:09 +03:00
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:
@@ -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 {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user