mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
* fix(antigravity): preserve protocol fidelity and fail closed * chore: add PR-numbered changelog fragment * test: split oversized Antigravity suites * refactor(antigravity): align official IDE and CLI identities * fix(antigravity): align catalog with callable models * test(antigravity): update 2 test files to renamed version-cache API (#8013 fix) Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: nguyenha935 <208228297+nguyenha935@users.noreply.github.com> Co-authored-by: backryun <backryun@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Co-authored-by: nguyenha935 <nguyenha935@users.noreply.github.com> Co-authored-by: Probe Test <probe@example.com>
29 lines
993 B
TypeScript
29 lines
993 B
TypeScript
export const ANTIGRAVITY_RUNTIME_BASE_URLS = Object.freeze([
|
|
"https://daily-cloudcode-pa.googleapis.com",
|
|
"https://cloudcode-pa.googleapis.com",
|
|
]);
|
|
|
|
export const ANTIGRAVITY_DISCOVERY_BASE_URLS = Object.freeze([
|
|
...ANTIGRAVITY_RUNTIME_BASE_URLS,
|
|
"https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
]);
|
|
|
|
export const ANTIGRAVITY_BOOTSTRAP_BASE_URLS = Object.freeze([
|
|
"https://cloudcode-pa.googleapis.com",
|
|
]);
|
|
|
|
const ANTIGRAVITY_MODELS_PATH = "/v1internal:models";
|
|
const ANTIGRAVITY_FETCH_AVAILABLE_MODELS_PATH = "/v1internal:fetchAvailableModels";
|
|
|
|
function buildAntigravityDiscoveryUrls(path: string): string[] {
|
|
return ANTIGRAVITY_DISCOVERY_BASE_URLS.map((baseUrl) => `${baseUrl}${path}`);
|
|
}
|
|
|
|
export function getAntigravityModelsDiscoveryUrls(): string[] {
|
|
return buildAntigravityDiscoveryUrls(ANTIGRAVITY_MODELS_PATH);
|
|
}
|
|
|
|
export function getAntigravityFetchAvailableModelsUrls(): string[] {
|
|
return buildAntigravityDiscoveryUrls(ANTIGRAVITY_FETCH_AVAILABLE_MODELS_PATH);
|
|
}
|