mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-20 13:52:28 +03:00
OmniRoute v3.8.29 — 115 commits since v3.8.28. Full CHANGELOG + 41 i18n mirrors. All content quality gates green (build, unit 8/8, vitest 188/188, PR test policy, quality gates extended, docs sync, quality ratchet). Remaining red CI checks are pre-existing release flakes (coverage-shard/integration/node-compat teardown), a new transitive undici advisory in electron devDeps, and a workflow-level CodeQL fail (0 open alerts). VPS-validated by the operator.
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import type { CloudAgentBase } from "./baseAgent.ts";
|
|
import { JulesAgent } from "./agents/jules.ts";
|
|
import { DevinAgent } from "./agents/devin.ts";
|
|
import { CodexCloudAgent } from "./agents/codex.ts";
|
|
import { CursorCloudAgent } from "./agents/cursor.ts";
|
|
|
|
const AGENTS: Record<string, CloudAgentBase> = {
|
|
jules: new JulesAgent(),
|
|
devin: new DevinAgent(),
|
|
"codex-cloud": new CodexCloudAgent(),
|
|
// #4227: Cursor Background/Cloud Agents via the official REST API (API-key based,
|
|
// no IDE-OAuth ban risk). Distinct provider id from the OAuth chat provider `cursor`.
|
|
"cursor-cloud": new CursorCloudAgent(),
|
|
};
|
|
|
|
export function getAgent(providerId: string): CloudAgentBase | null {
|
|
return AGENTS[providerId] || null;
|
|
}
|
|
|
|
export function getAvailableAgents(): string[] {
|
|
return Object.keys(AGENTS);
|
|
}
|
|
|
|
export function isCloudAgentProvider(providerId: string): boolean {
|
|
return providerId in AGENTS;
|
|
}
|
|
|
|
export { JulesAgent, DevinAgent, CodexCloudAgent, CursorCloudAgent };
|
|
export type { CloudAgentBase } from "./baseAgent.ts";
|