@jacobbd/relay-ai 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-R4AWEK7T.js → chunk-MFKBK6YL.js} +10 -15
- package/dist/{chunk-R4AWEK7T.js.map → chunk-MFKBK6YL.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/{ui-command-FARF2BF4.js → ui-command-ZJBZZZ4X.js} +11 -6
- package/dist/ui-command-ZJBZZZ4X.js.map +1 -0
- package/package.json +1 -1
- package/dist/ui-command-FARF2BF4.js.map +0 -1
|
@@ -11,7 +11,7 @@ import { join } from "path";
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@jacobbd/relay-ai",
|
|
14
|
-
version: "0.9.
|
|
14
|
+
version: "0.9.1",
|
|
15
15
|
publishConfig: {
|
|
16
16
|
access: "public"
|
|
17
17
|
},
|
|
@@ -7501,15 +7501,10 @@ var model_incompatible_default = {
|
|
|
7501
7501
|
|
|
7502
7502
|
// src/model-compatibility.ts
|
|
7503
7503
|
var BLACKLIST_ENTRIES = model_incompatible_default.entries ?? [];
|
|
7504
|
-
var
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
"gemini-pro-agent",
|
|
7509
|
-
"claude-sonnet-4-6",
|
|
7510
|
-
"claude-opus-4-6-thinking",
|
|
7511
|
-
"gpt-oss-120b-medium"
|
|
7512
|
-
]);
|
|
7504
|
+
var ANTIGRAVITY_HELPER_SLOT = /^(tab_|chat_|models\/)|image/i;
|
|
7505
|
+
function isAntigravityCloudCodeHelperSlot(modelId) {
|
|
7506
|
+
return ANTIGRAVITY_HELPER_SLOT.test(modelId);
|
|
7507
|
+
}
|
|
7513
7508
|
function matchesAgent(entryAgents, agent) {
|
|
7514
7509
|
if (!entryAgents || entryAgents.length === 0) return true;
|
|
7515
7510
|
return entryAgents.includes(agent);
|
|
@@ -7527,8 +7522,8 @@ function findBlacklistEntry(ctx) {
|
|
|
7527
7522
|
return null;
|
|
7528
7523
|
}
|
|
7529
7524
|
function hideReason(ctx) {
|
|
7530
|
-
if (ctx.providerId === "antigravity" &&
|
|
7531
|
-
return "[antigravity-oauth]
|
|
7525
|
+
if (ctx.providerId === "antigravity" && isAntigravityCloudCodeHelperSlot(ctx.modelId)) {
|
|
7526
|
+
return "[antigravity-oauth] Cloud Code helper/internal slot";
|
|
7532
7527
|
}
|
|
7533
7528
|
const blacklist = findBlacklistEntry(ctx);
|
|
7534
7529
|
if (blacklist) return `[blacklist:${blacklist.category}] ${blacklist.reason}`;
|
|
@@ -9855,7 +9850,7 @@ async function refreshAntigravityOAuthModels(accessToken) {
|
|
|
9855
9850
|
const body = await res.json();
|
|
9856
9851
|
const raw = body.models && typeof body.models === "object" && !Array.isArray(body.models) ? Object.entries(body.models).map(([id, model]) => ({ id, ...model })) : Array.isArray(body.models) ? body.models.filter((m) => typeof m.id === "string" && m.id.length > 0) : [];
|
|
9857
9852
|
if (raw.length === 0) continue;
|
|
9858
|
-
const models = raw.filter((m) => typeof m.id === "string" && m.id.length > 0).map((m) => {
|
|
9853
|
+
const models = raw.filter((m) => typeof m.id === "string" && m.id.length > 0 && !isAntigravityCloudCodeHelperSlot(m.id)).map((m) => {
|
|
9859
9854
|
const id = m.id;
|
|
9860
9855
|
const name = m.displayName ?? m.name ?? id;
|
|
9861
9856
|
const isGemini = id.startsWith("gemini");
|
|
@@ -10240,7 +10235,7 @@ async function refreshProviderModels(providerId, apiKey, registry = loadRegistry
|
|
|
10240
10235
|
id: provider.id,
|
|
10241
10236
|
name: provider.name,
|
|
10242
10237
|
ok: false,
|
|
10243
|
-
reason: "
|
|
10238
|
+
reason: "Cloud Code returned no usable Antigravity models \u2014 kept the existing model cache."
|
|
10244
10239
|
};
|
|
10245
10240
|
}
|
|
10246
10241
|
updateProviderCache(registry, providerId, enriched, baseUrl);
|
|
@@ -13297,4 +13292,4 @@ export {
|
|
|
13297
13292
|
supportsClaudeTransparentMode,
|
|
13298
13293
|
buildHttpProxyRoutes
|
|
13299
13294
|
};
|
|
13300
|
-
//# sourceMappingURL=chunk-
|
|
13295
|
+
//# sourceMappingURL=chunk-MFKBK6YL.js.map
|