@moondeck/station 1.0.13 → 1.0.14
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/images/standard/Dockerfile +32 -0
- package/images/standard/README.md +7 -7
- package/lib/agent-cli-issues.ts +42 -13
- package/lib/agent-cli.ts +63 -42
- package/lib/agents/agy-pin.ts +36 -0
- package/lib/agents/agy-scrub.ts +11 -0
- package/lib/agents/claude.ts +5 -2
- package/lib/agents/codex.ts +5 -0
- package/lib/agents/factory.ts +1 -0
- package/lib/agents/gemini-credentials.ts +61 -0
- package/lib/agents/gemini-stream.fixture.json +439 -0
- package/lib/agents/gemini.ts +836 -0
- package/lib/agents/transport.ts +5 -2
- package/lib/credential-cleanup-inventory.ts +19 -1
- package/lib/credential-consumers/engines.ts +70 -9
- package/lib/engine-accounts.ts +3 -0
- package/lib/engine-login.ts +162 -7
- package/lib/engine-spawn-env.ts +63 -0
- package/lib/orchestrator.ts +62 -25
- package/lib/standard-image-pin.ts +2 -1
- package/lib/standard-image.ts +9 -1
- package/lib/task-credential-cleanup.ts +3 -1
- package/package.json +1 -1
- package/scripts/agent/task-up.sh +36 -0
- package/scripts/agent/uai-env-exec.sh +89 -1
- package/src/cloud-credentials.ts +6 -0
- package/src/engine-account-paths.ts +2 -0
- package/src/engine-usage.ts +1 -0
- package/src/index.ts +4 -1
- package/src/main.ts +7 -1
- package/src/protocol.ts +7 -4
- package/src/task-env-names.ts +70 -0
package/lib/orchestrator.ts
CHANGED
|
@@ -70,6 +70,7 @@ import {
|
|
|
70
70
|
import { ACTIVE_STATUSES, isActive, isOnDashboard } from "./task-status";
|
|
71
71
|
import { isSafeHostTaskId } from "./task-identity";
|
|
72
72
|
import { projectEnvForTask } from "./host-env";
|
|
73
|
+
import { CODEX_UNSET_ONLY_NAMES, SPAWN_RESTORED_ENV_NAMES } from "./engine-spawn-env";
|
|
73
74
|
import { CLASSIFIER_MODEL, shadowRoute } from "./routing/shadow";
|
|
74
75
|
import {
|
|
75
76
|
closeCurrentTaskRunAssignmentForStoppedRuntime,
|
|
@@ -195,6 +196,7 @@ import { buildEngineUsageFrame } from "../src/engine-usage";
|
|
|
195
196
|
import {
|
|
196
197
|
ENGINE_ACCOUNT_HOMES,
|
|
197
198
|
EngineCredentialWriteRefused,
|
|
199
|
+
geminiKeyHome,
|
|
198
200
|
engineSpawnEnv,
|
|
199
201
|
engineVersionHeldBack,
|
|
200
202
|
ensureEngineHome,
|
|
@@ -639,6 +641,7 @@ const ENGINE_USAGE_KINDS = new Set<EngineUsageFrame["engine"]>([
|
|
|
639
641
|
"grok",
|
|
640
642
|
"cursor",
|
|
641
643
|
"opencode",
|
|
644
|
+
"gemini",
|
|
642
645
|
]);
|
|
643
646
|
|
|
644
647
|
function isEngineUsageKind(kind: string): kind is EngineUsageFrame["engine"] {
|
|
@@ -2906,7 +2909,12 @@ export class Orchestrator {
|
|
|
2906
2909
|
) {
|
|
2907
2910
|
return {};
|
|
2908
2911
|
}
|
|
2909
|
-
|
|
2912
|
+
// These values ride the agent's own env here, under the spawn blanks that
|
|
2913
|
+
// keep an app-shared name (OPENAI_BASE_URL, …) from routing an agent's
|
|
2914
|
+
// CLI: drop them, or the project's value would win over its blank.
|
|
2915
|
+
const env = projectEnvForTask(hostTaskProjectIds(task));
|
|
2916
|
+
for (const name of [...SPAWN_RESTORED_ENV_NAMES, ...CODEX_UNSET_ONLY_NAMES]) delete env[name];
|
|
2917
|
+
return env;
|
|
2910
2918
|
}
|
|
2911
2919
|
|
|
2912
2920
|
|
|
@@ -3104,7 +3112,8 @@ export class Orchestrator {
|
|
|
3104
3112
|
if (lease?.open) {
|
|
3105
3113
|
const account = this.leasedAccountFor(channel, agentId, kind, lease);
|
|
3106
3114
|
if (account?.authKind === "env") {
|
|
3107
|
-
return this.withLeasedAccount(channel, agentId, args, account, lease.assignment.runEpoch
|
|
3115
|
+
return this.withLeasedAccount(channel, agentId, args, account, lease.assignment.runEpoch,
|
|
3116
|
+
this.geminiKeyHomeFor(channel, agentId, account, lease.assignment.runEpoch, environment));
|
|
3108
3117
|
}
|
|
3109
3118
|
}
|
|
3110
3119
|
return (async () => {
|
|
@@ -3127,7 +3136,8 @@ export class Orchestrator {
|
|
|
3127
3136
|
break;
|
|
3128
3137
|
}
|
|
3129
3138
|
if (account.authKind === "env") {
|
|
3130
|
-
return this.withLeasedAccount(channel, agentId, args, account, open.assignment.runEpoch
|
|
3139
|
+
return this.withLeasedAccount(channel, agentId, args, account, open.assignment.runEpoch,
|
|
3140
|
+
this.geminiKeyHomeFor(channel, agentId, account, open.assignment.runEpoch, environment));
|
|
3131
3141
|
}
|
|
3132
3142
|
if (account.authKind === "custom-connection") {
|
|
3133
3143
|
try {
|
|
@@ -3223,7 +3233,12 @@ export class Orchestrator {
|
|
|
3223
3233
|
if (!this.isActiveChannel(channel)) return null;
|
|
3224
3234
|
// Codex runs in a home of its own (two agents on one account never
|
|
3225
3235
|
// share its state runtime); the config writers above reached it.
|
|
3226
|
-
|
|
3236
|
+
// Gemini too (ADR-178): each agent's agy keeps and renews its own
|
|
3237
|
+
// token file and conversations.
|
|
3238
|
+
const home =
|
|
3239
|
+
kind === "codex" || kind === "gemini"
|
|
3240
|
+
? codexPerAgentHome(account.home!, agentId)
|
|
3241
|
+
: account.home!;
|
|
3227
3242
|
try {
|
|
3228
3243
|
await ensureEngineHome(environment, open.assignment, account.credentialId, home);
|
|
3229
3244
|
} catch (error) {
|
|
@@ -3250,6 +3265,26 @@ export class Orchestrator {
|
|
|
3250
3265
|
})();
|
|
3251
3266
|
}
|
|
3252
3267
|
|
|
3268
|
+
/** ADR-178: an API-key Gemini agent runs agy in a dir of its own (never a
|
|
3269
|
+
* subscription's), inventoried under this run so a cleanup removes it with
|
|
3270
|
+
* the agent's agy state. Undefined for every other account. */
|
|
3271
|
+
private geminiKeyHomeFor(
|
|
3272
|
+
channel: Channel,
|
|
3273
|
+
agentId: string,
|
|
3274
|
+
account: LeasedEngineAccount,
|
|
3275
|
+
runEpoch: number,
|
|
3276
|
+
environment: TaskEnvironmentHandle<unknown>,
|
|
3277
|
+
): string | undefined {
|
|
3278
|
+
if (account.engineKind !== "gemini" || account.authKind !== "env") return undefined;
|
|
3279
|
+
const home = geminiKeyHome(agentId);
|
|
3280
|
+
rememberCredentialCleanupPath({
|
|
3281
|
+
taskId: channel.taskId, runEpoch,
|
|
3282
|
+
runtime: environment.descriptor.locator, lane: "engine-auth",
|
|
3283
|
+
path: home, credentialId: account.credentialId,
|
|
3284
|
+
});
|
|
3285
|
+
return home;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3253
3288
|
/** The task's open engine lease, waited for while time remains, a newer
|
|
3254
3289
|
* run's when the task moves on to one; null when none opens in time. */
|
|
3255
3290
|
private async leasedGateOpen(channel: Channel, deadline: number): Promise<TaskEngineLease | null> {
|
|
@@ -4427,7 +4462,9 @@ export class Orchestrator {
|
|
|
4427
4462
|
): Promise<{ exitCode: number | null; stdout: string } | null> {
|
|
4428
4463
|
if (channel.roster.find(a => a.id === agentId)?.accountBinding === "required") return null;
|
|
4429
4464
|
const request = (env: Record<string, string>, admit: () => void) => ({
|
|
4430
|
-
|
|
4465
|
+
// Codex refuses an empty workload-identity name: on a baked container a
|
|
4466
|
+
// project's value is removed, unless this env sets it (agentCliArgv).
|
|
4467
|
+
argv: agentCliArgv(handle, argv, kind === "codex" ? CODEX_UNSET_ONLY_NAMES.filter((name) => !Object.hasOwn(env, name)) : []),
|
|
4431
4468
|
projectEnvProfile: "task" as const,
|
|
4432
4469
|
cwd: scratchDir,
|
|
4433
4470
|
user: "node",
|
|
@@ -5197,7 +5234,7 @@ export class Orchestrator {
|
|
|
5197
5234
|
}
|
|
5198
5235
|
|
|
5199
5236
|
const channel = await this.getOrCreateChannel(taskId);
|
|
5200
|
-
if (!channel) return { ok: false, error: "task or
|
|
5237
|
+
if (!channel) return { ok: false, error: "task or repository not found" };
|
|
5201
5238
|
|
|
5202
5239
|
const ready = await this.ensureSessions(channel);
|
|
5203
5240
|
if (!ready) {
|
|
@@ -7841,7 +7878,7 @@ export function buildSystemPreamble(
|
|
|
7841
7878
|
"## Workspace layout",
|
|
7842
7879
|
"",
|
|
7843
7880
|
`Your shell starts in \`${workspacePath}\`. It contains one`,
|
|
7844
|
-
"
|
|
7881
|
+
"Git worktree per repository:",
|
|
7845
7882
|
"",
|
|
7846
7883
|
...projectLines,
|
|
7847
7884
|
"",
|
|
@@ -7855,7 +7892,7 @@ export function buildSystemPreamble(
|
|
|
7855
7892
|
]),
|
|
7856
7893
|
"",
|
|
7857
7894
|
"The `.moondeck/` directory is Moondeck scaffolding. Read the two transcript files",
|
|
7858
|
-
"there as described above; do not treat the rest as
|
|
7895
|
+
"there as described above; do not treat the rest as repository content.",
|
|
7859
7896
|
"",
|
|
7860
7897
|
]
|
|
7861
7898
|
: [
|
|
@@ -7863,16 +7900,16 @@ export function buildSystemPreamble(
|
|
|
7863
7900
|
"",
|
|
7864
7901
|
`Your shell starts in \`${workspacePath}\` (the task workspace).`,
|
|
7865
7902
|
"That directory is **not** itself a git repo — it holds one git",
|
|
7866
|
-
"worktree per
|
|
7903
|
+
"worktree per repository this task spans. Every repository below is on the",
|
|
7867
7904
|
"same task branch. To run git commands, **`cd` into one of the",
|
|
7868
|
-
"
|
|
7905
|
+
"repository directories first**:",
|
|
7869
7906
|
"",
|
|
7870
7907
|
...projectLines,
|
|
7871
7908
|
"",
|
|
7872
7909
|
`The task branch is \`${taskBranch}\`. Push with \`git push -u origin`,
|
|
7873
|
-
`${taskBranch}\` from inside the
|
|
7874
|
-
"create` (the container has gh authenticated). For multi-
|
|
7875
|
-
"tasks, each
|
|
7910
|
+
`${taskBranch}\` from inside the repository, then open a PR with \`gh pr`,
|
|
7911
|
+
"create` (the container has gh authenticated). For multi-repository",
|
|
7912
|
+
"tasks, each repository's PR is independent — open one per repository whose",
|
|
7876
7913
|
"worktree you actually changed. For a separate branch, create it in",
|
|
7877
7914
|
"this task's namespace — `git switch -c \"$(moondeck branch name fix-foo)\"`",
|
|
7878
7915
|
"makes `uai/<taskId>/fix-foo`. Only task-branch and namespace PRs link to",
|
|
@@ -7880,7 +7917,7 @@ export function buildSystemPreamble(
|
|
|
7880
7917
|
"",
|
|
7881
7918
|
"The `.moondeck/` directory under each task is Moondeck's own scaffolding",
|
|
7882
7919
|
"(rendered Dockerfile, compose file, container scripts) — it is NOT",
|
|
7883
|
-
"part of the
|
|
7920
|
+
"part of the repository. Never review, edit, stage, commit, or flag it;",
|
|
7884
7921
|
"treat it as ignored, even though git may show it as untracked.",
|
|
7885
7922
|
"",
|
|
7886
7923
|
];
|
|
@@ -8125,7 +8162,7 @@ export function buildSystemPreamble(
|
|
|
8125
8162
|
"",
|
|
8126
8163
|
`You can query and plan through Moondeck by running \`node ${CONTAINER_CLI_PATH}`,
|
|
8127
8164
|
"<command>` in the shell. Your permissions:",
|
|
8128
|
-
`\`${(agent.permissions ?? []).join(", ")}\`. Commands: \`
|
|
8165
|
+
`\`${(agent.permissions ?? []).join(", ")}\`. Commands: \`repos list\`,`,
|
|
8129
8166
|
"`people list`, `task list`" +
|
|
8130
8167
|
(agent.permissions?.includes("issues.read")
|
|
8131
8168
|
? ", `issue list`, `issue show KEY-N`, `issue current` (Issue reads; add --json for structured output)"
|
|
@@ -8134,7 +8171,7 @@ export function buildSystemPreamble(
|
|
|
8134
8171
|
? ", `issue create --title T`, `issue update KEY-N`, `issue link KEY-N`, `issue unlink KEY-N` (Issue writes; see the guide for flags)"
|
|
8135
8172
|
: "") +
|
|
8136
8173
|
(agent.permissions?.includes("tasks.create")
|
|
8137
|
-
? ", `task create --name <n> --prompt <p> [--
|
|
8174
|
+
? ", `task create --name <n> --prompt <p> [--repos id,id] [--agents handle,handle] [--astronaut engine/model/effort] [--start --request-id <logical-run-id>]`"
|
|
8138
8175
|
: "") +
|
|
8139
8176
|
(agent.permissions?.includes("tasks.read")
|
|
8140
8177
|
? ", `task watch <childId> [--after <cursor>]`, `task usage <childId>`"
|
|
@@ -8158,7 +8195,7 @@ export function buildSystemPreamble(
|
|
|
8158
8195
|
? ", `preview add|enable|public <name>`"
|
|
8159
8196
|
: "") +
|
|
8160
8197
|
(agent.permissions?.includes("projects.write")
|
|
8161
|
-
? ", `
|
|
8198
|
+
? ", `repo create --name --repo`"
|
|
8162
8199
|
: "") +
|
|
8163
8200
|
(agent.permissions?.includes("tasks.history")
|
|
8164
8201
|
? ", `task search <query>` / `task read <id>`"
|
|
@@ -8183,7 +8220,7 @@ export function buildSystemPreamble(
|
|
|
8183
8220
|
"Closing the parent leaves running children alive. Child permissions never exceed your live creation ceiling.",
|
|
8184
8221
|
"Send/answer are visibly delegated agent inputs, never human approval.",
|
|
8185
8222
|
"Discover options first with",
|
|
8186
|
-
"`
|
|
8223
|
+
"`repos list` / `people list`.",
|
|
8187
8224
|
]
|
|
8188
8225
|
: []),
|
|
8189
8226
|
...(agent.permissions?.includes("tasks.close")
|
|
@@ -9312,15 +9349,15 @@ function validateRecoveryProjects(
|
|
|
9312
9349
|
try {
|
|
9313
9350
|
parsed = JSON.parse(task.projectSlugs);
|
|
9314
9351
|
} catch {
|
|
9315
|
-
return { error: "the persisted
|
|
9352
|
+
return { error: "the persisted repository slug list is invalid JSON" };
|
|
9316
9353
|
}
|
|
9317
9354
|
if (!Array.isArray(parsed) || !parsed.every(safeRecoveryProjectSlug)) {
|
|
9318
|
-
return { error: "the persisted
|
|
9355
|
+
return { error: "the persisted repository slug list contains an unsafe entry" };
|
|
9319
9356
|
}
|
|
9320
9357
|
const slugs = parsed as string[];
|
|
9321
9358
|
const expected = new Set(slugs);
|
|
9322
9359
|
if (expected.size !== slugs.length) {
|
|
9323
|
-
return { error: "the persisted
|
|
9360
|
+
return { error: "the persisted repository slug list contains duplicates" };
|
|
9324
9361
|
}
|
|
9325
9362
|
|
|
9326
9363
|
for (const slug of expected) {
|
|
@@ -9331,7 +9368,7 @@ function validateRecoveryProjects(
|
|
|
9331
9368
|
projectStat = lstatSync(project);
|
|
9332
9369
|
markerStat = lstatSync(join(project, ".git"));
|
|
9333
9370
|
} catch {
|
|
9334
|
-
return { error: `expected
|
|
9371
|
+
return { error: `expected repository ${slug} or its .git marker is missing` };
|
|
9335
9372
|
}
|
|
9336
9373
|
if (
|
|
9337
9374
|
projectStat.isSymbolicLink() ||
|
|
@@ -9339,7 +9376,7 @@ function validateRecoveryProjects(
|
|
|
9339
9376
|
markerStat.isSymbolicLink() ||
|
|
9340
9377
|
(!markerStat.isFile() && !markerStat.isDirectory())
|
|
9341
9378
|
) {
|
|
9342
|
-
return { error: `expected
|
|
9379
|
+
return { error: `expected repository ${slug} is not a safe Git worktree` };
|
|
9343
9380
|
}
|
|
9344
9381
|
}
|
|
9345
9382
|
return { slugs };
|
|
@@ -9384,7 +9421,7 @@ function recoveryRuntimeProjectAllowlist(
|
|
|
9384
9421
|
return { error: "the task runtime-project allowlist is not a regular file" };
|
|
9385
9422
|
}
|
|
9386
9423
|
if (readFileSync(target, "utf8") !== expected) {
|
|
9387
|
-
return { error: "the task runtime-project allowlist does not match persisted
|
|
9424
|
+
return { error: "the task runtime-project allowlist does not match persisted repositories" };
|
|
9388
9425
|
}
|
|
9389
9426
|
return { path: target };
|
|
9390
9427
|
} catch (err) {
|
|
@@ -9393,7 +9430,7 @@ function recoveryRuntimeProjectAllowlist(
|
|
|
9393
9430
|
|
|
9394
9431
|
if (slugs.length === 0) {
|
|
9395
9432
|
return {
|
|
9396
|
-
error: "zero-
|
|
9433
|
+
error: "zero-repository recovery lacks an existing authoritative empty runtime-project allowlist",
|
|
9397
9434
|
};
|
|
9398
9435
|
}
|
|
9399
9436
|
|
|
@@ -39,13 +39,14 @@ export const STANDARD_IMAGE_PIN_BASENAME = "standard-image.pin.json";
|
|
|
39
39
|
* host — and toggling an engine on stops forcing a host-side rebuild.
|
|
40
40
|
*/
|
|
41
41
|
export const STANDARD_IMAGE_SUPERSET_EXTRA =
|
|
42
|
-
"kimi=1;grok=1;cursor=1;opencode=1";
|
|
42
|
+
"kimi=1;grok=1;cursor=1;opencode=1;gemini=1";
|
|
43
43
|
|
|
44
44
|
export const STANDARD_IMAGE_SUPERSET_BUILD_ARGS: readonly string[] = [
|
|
45
45
|
"INSTALL_KIMI=1",
|
|
46
46
|
"INSTALL_GROK=1",
|
|
47
47
|
"INSTALL_CURSOR=1",
|
|
48
48
|
"INSTALL_OPENCODE=1",
|
|
49
|
+
"INSTALL_GEMINI=1",
|
|
49
50
|
];
|
|
50
51
|
|
|
51
52
|
export interface StandardImagePin {
|
package/lib/standard-image.ts
CHANGED
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
standardImagePullCommands,
|
|
53
53
|
standardImagePullDigest,
|
|
54
54
|
} from "./standard-image-pin";
|
|
55
|
+
import { geminiCredentialSource } from "./agents/gemini-credentials";
|
|
55
56
|
import { sidecarMode } from "./sidecar";
|
|
56
57
|
import { StandardImageCleanup, StandardImageBuildBackoff } from "./standard-image-cleanup";
|
|
57
58
|
|
|
@@ -125,6 +126,7 @@ export function configuredOptionalEngines(): {
|
|
|
125
126
|
grok: boolean;
|
|
126
127
|
cursor: boolean;
|
|
127
128
|
opencode: boolean;
|
|
129
|
+
gemini: boolean;
|
|
128
130
|
} {
|
|
129
131
|
// A stored account (a workspace's, on a shared host; a labeled extra on an
|
|
130
132
|
// owned one) needs the CLI in the image just like the host's own sign-in
|
|
@@ -137,6 +139,10 @@ export function configuredOptionalEngines(): {
|
|
|
137
139
|
grok: on("grok"),
|
|
138
140
|
cursor: on("cursor"),
|
|
139
141
|
opencode: on("opencode"),
|
|
142
|
+
// Antigravity CLI: gated on the sign-in seam (gemini-credentials.ts), not
|
|
143
|
+
// engines.ts. How the credential reaches a task waits on the ADR-154
|
|
144
|
+
// decision; the binary only needs to be present.
|
|
145
|
+
gemini: geminiCredentialSource().hostSignedIn(),
|
|
140
146
|
};
|
|
141
147
|
}
|
|
142
148
|
|
|
@@ -1372,9 +1378,11 @@ async function ensureStandardImageInner(
|
|
|
1372
1378
|
`INSTALL_CURSOR=${engines.cursor ? 1 : 0}`,
|
|
1373
1379
|
"--build-arg",
|
|
1374
1380
|
`INSTALL_OPENCODE=${engines.opencode ? 1 : 0}`,
|
|
1381
|
+
"--build-arg",
|
|
1382
|
+
`INSTALL_GEMINI=${engines.gemini ? 1 : 0}`,
|
|
1375
1383
|
];
|
|
1376
1384
|
const contextHash = await hashBuildContext(
|
|
1377
|
-
`kimi=${engines.kimi ? 1 : 0};grok=${engines.grok ? 1 : 0};cursor=${engines.cursor ? 1 : 0};opencode=${engines.opencode ? 1 : 0}`,
|
|
1385
|
+
`kimi=${engines.kimi ? 1 : 0};grok=${engines.grok ? 1 : 0};cursor=${engines.cursor ? 1 : 0};opencode=${engines.opencode ? 1 : 0};gemini=${engines.gemini ? 1 : 0}`,
|
|
1378
1386
|
);
|
|
1379
1387
|
let inspect: RunResult;
|
|
1380
1388
|
let labeledHash: string | null = null;
|
|
@@ -10,6 +10,7 @@ import { spawn } from "node:child_process";
|
|
|
10
10
|
import type { HostCredentialCleanupPath } from "../db/schema";
|
|
11
11
|
import {
|
|
12
12
|
assertCredentialCleanupPath,
|
|
13
|
+
isCredentialCleanupDirectory,
|
|
13
14
|
forgetCredentialCleanupPending,
|
|
14
15
|
forgetCredentialCleanupPath,
|
|
15
16
|
forgetCredentialCleanupRestop,
|
|
@@ -232,7 +233,8 @@ export async function removeRuntimeCredentialFile(
|
|
|
232
233
|
const removed = await execCleanup(
|
|
233
234
|
environment,
|
|
234
235
|
["/usr/bin/python3", "-I", "-", "/home/node", path,
|
|
235
|
-
|
|
236
|
+
// A connection home or a Gemini agent's agy dir is removed whole.
|
|
237
|
+
...(isCredentialCleanupDirectory(path) ? ["directory"] : [])],
|
|
236
238
|
Buffer.from(CREDENTIAL_UNLINK_HELPER, "utf8"),
|
|
237
239
|
);
|
|
238
240
|
if (removed.exitCode !== 0) {
|
package/package.json
CHANGED
package/scripts/agent/task-up.sh
CHANGED
|
@@ -1834,6 +1834,10 @@ fi
|
|
|
1834
1834
|
# value arrived as an ordinary declared env key or as a preview urlEnv literal.
|
|
1835
1835
|
# UAI_EDITOR_THEME is the sole preview exception below: it is computed by the
|
|
1836
1836
|
# cloud from the task palette, not sourced from a project.
|
|
1837
|
+
# The engine routing names (endpoint, provider and auth overrides an agent's
|
|
1838
|
+
# CLI reads) mirror host-agent/src/task-env-names.ts ENGINE_ROUTING_ENV_KEYS
|
|
1839
|
+
# and ENGINE_ROUTING_ENV_PREFIXES name for name; host-env.test.ts holds them
|
|
1840
|
+
# equal.
|
|
1837
1841
|
is_reserved_task_env_name() {
|
|
1838
1842
|
case "$1" in
|
|
1839
1843
|
GH_TOKEN | GITHUB_TOKEN | GH_CONFIG_DIR | GH_HOST | \
|
|
@@ -1853,6 +1857,38 @@ is_reserved_task_env_name() {
|
|
|
1853
1857
|
[Nn][Pp][Mm]_[Cc][Oo][Nn][Ff][Ii][Gg]_[Uu][Mm][Aa][Ss][Kk] | UAI_* | \
|
|
1854
1858
|
CLAUDE_CODE_OAUTH_TOKEN | \
|
|
1855
1859
|
ANTHROPIC_API_KEY | ANTHROPIC_AUTH_TOKEN | XAI_API_KEY | CURSOR_API_KEY | \
|
|
1860
|
+
GEMINI_API_KEY | \
|
|
1861
|
+
ANTHROPIC_BASE_URL | ANTHROPIC_CUSTOM_HEADERS | ANTHROPIC_UNIX_SOCKET | \
|
|
1862
|
+
ANTHROPIC_CONFIG_DIR | CLAUDE_CONFIG_DIR | ANTHROPIC_BEDROCK_BASE_URL | \
|
|
1863
|
+
ANTHROPIC_BEDROCK_MANTLE_BASE_URL | ANTHROPIC_VERTEX_BASE_URL | ANTHROPIC_VERTEX_PROJECT_ID | \
|
|
1864
|
+
ANTHROPIC_FOUNDRY_BASE_URL | ANTHROPIC_FOUNDRY_RESOURCE | ANTHROPIC_FOUNDRY_API_KEY | \
|
|
1865
|
+
ANTHROPIC_FOUNDRY_AUTH_TOKEN | ANTHROPIC_AWS_BASE_URL | ANTHROPIC_AWS_API_KEY | \
|
|
1866
|
+
ANTHROPIC_AWS_WORKSPACE_ID | ANTHROPIC_GOOGLE_CLOUD_BASE_URL | ANTHROPIC_GOOGLE_CLOUD_PROJECT | \
|
|
1867
|
+
ANTHROPIC_GOOGLE_CLOUD_LOCATION | ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID | \
|
|
1868
|
+
ANTHROPIC_PROFILE | ANTHROPIC_ORGANIZATION_ID | ANTHROPIC_WORKSPACE_ID | \
|
|
1869
|
+
ANTHROPIC_FEDERATION_RULE_ID | ANTHROPIC_IDENTITY_TOKEN | ANTHROPIC_IDENTITY_TOKEN_FILE | \
|
|
1870
|
+
ANTHROPIC_SERVICE_ACCOUNT_ID | CLAUDE_CODE_API_BASE_URL | _CLAUDE_CODE_ASSUME_FIRST_PARTY_BASE_URL | \
|
|
1871
|
+
CLAUDE_CODE_CUSTOM_OAUTH_URL | CLAUDE_CODE_OAUTH_CLIENT_ID | CLAUDE_CODE_OAUTH_REFRESH_TOKEN | \
|
|
1872
|
+
CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR | CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR | \
|
|
1873
|
+
CLAUDE_CODE_HOST_AUTH_ENV_VAR | CLAUDE_CODE_HOST_CREDS_FILE | CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST | \
|
|
1874
|
+
CLAUDE_CODE_PROXY_URL | CLAUDE_CODE_USE_BEDROCK | CLAUDE_CODE_USE_VERTEX | \
|
|
1875
|
+
CLAUDE_CODE_USE_FOUNDRY | CLAUDE_CODE_USE_MANTLE | CLAUDE_CODE_USE_GATEWAY | \
|
|
1876
|
+
CLAUDE_CODE_USE_ANTHROPIC_AWS | CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD | \
|
|
1877
|
+
CLAUDE_CODE_SKIP_BEDROCK_AUTH | CLAUDE_CODE_SKIP_VERTEX_AUTH | CLAUDE_CODE_SKIP_FOUNDRY_AUTH | \
|
|
1878
|
+
CLAUDE_CODE_SKIP_MANTLE_AUTH | CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH | CLAUDE_CODE_SKIP_ANTHROPIC_GOOGLE_CLOUD_AUTH | \
|
|
1879
|
+
CODEX_HOME | CODEX_API_KEY | CODEX_ACCESS_TOKEN | CODEX_OSS_BASE_URL | \
|
|
1880
|
+
CODEX_OSS_PORT | CHATGPT_BASE_URL | CODEX_REFRESH_TOKEN_URL_OVERRIDE | \
|
|
1881
|
+
CODEX_REVOKE_TOKEN_URL_OVERRIDE | CODEX_AUTHAPI_BASE_URL | CODEX_APP_SERVER_CHATGPT_BASE_URL | \
|
|
1882
|
+
CODEX_AGENT_IDENTITY_AUTHAPI_BASE_URL | CODEX_AGENT_IDENTITY_JWKS_BASE_URL | \
|
|
1883
|
+
CODEX_CLOUD_TASKS_BASE_URL | CODEX_EXEC_SERVER_URL | \
|
|
1884
|
+
CURSOR_API_BASE_URL | CURSOR_API_ENDPOINT | CURSOR_API_URL | CURSOR_AUTH_TOKEN | \
|
|
1885
|
+
CURSOR_IDENTITY_TOKEN | CURSOR_CONFIG_DIR | CURSOR_LOCAL_AGENT_BASE_URL | \
|
|
1886
|
+
CURSOR_LOCAL_AGENT_API_KEY | CURSOR_LOCAL_AGENT_API_KEY_HELPER | CURSOR_LOCAL_AGENT_HEADERS | \
|
|
1887
|
+
CURSOR_BEDROCK_BASE_URL | CURSOR_BEDROCK_REGION | CURSOR_BEDROCK_AWS_AUTH_REFRESH | \
|
|
1888
|
+
CURSOR_ENABLE_BEDROCK | CURSOR_ENABLE_LOCAL_BEDROCK | CURSOR_ENABLE_AUTHLESS | \
|
|
1889
|
+
CURSOR_AGENT_CLI_AUTHLESS_MODE | CURSOR_AGENT_CLI_LOCAL_MODE | XAI_API_BASE_URL | \
|
|
1890
|
+
GOOGLE_GEMINI_BASE_URL | \
|
|
1891
|
+
GROK_* | AGY_* | ANTIGRAVITY_* | OPENCODE_* | \
|
|
1856
1892
|
PLAYWRIGHT_BROWSERS_PATH)
|
|
1857
1893
|
return 0
|
|
1858
1894
|
;;
|
|
@@ -17,10 +17,98 @@ if [ "${UAI_ENV_HOOK-0}" = "1" ]; then
|
|
|
17
17
|
printf '%s\n' 'uai-env-exec: project environment hook is unavailable' >&2
|
|
18
18
|
exit 127
|
|
19
19
|
fi
|
|
20
|
+
# The spawn blanks (or, on a connection, sets) the names an engine CLI routes
|
|
21
|
+
# by that a project's own app reads too; the sync below would export the
|
|
22
|
+
# project's value over them. Keep this process's value of each, set, empty or
|
|
23
|
+
# unset, and put it back before exec. The lists mirror host-agent/lib/
|
|
24
|
+
# engine-spawn-env.ts name for name (uai-env-exec.test.ts):
|
|
25
|
+
# SPAWN_RESTORED_ENV_NAMES, always;
|
|
26
|
+
__uai_keep_names='
|
|
27
|
+
ANTHROPIC_AWS_API_KEY ANTHROPIC_AWS_BASE_URL ANTHROPIC_AWS_WORKSPACE_ID
|
|
28
|
+
ANTHROPIC_BASE_URL ANTHROPIC_BEDROCK_BASE_URL
|
|
29
|
+
ANTHROPIC_BEDROCK_MANTLE_BASE_URL ANTHROPIC_BEDROCK_REGION_PREFIX
|
|
30
|
+
ANTHROPIC_CUSTOM_HEADERS ANTHROPIC_DEFAULT_FABLE_MODEL
|
|
31
|
+
ANTHROPIC_DEFAULT_HAIKU_MODEL ANTHROPIC_DEFAULT_MODEL
|
|
32
|
+
ANTHROPIC_DEFAULT_OPUS_MODEL ANTHROPIC_DEFAULT_SONNET_MODEL
|
|
33
|
+
ANTHROPIC_FEDERATION_RULE_ID ANTHROPIC_FOUNDRY_API_KEY
|
|
34
|
+
ANTHROPIC_FOUNDRY_AUTH_TOKEN ANTHROPIC_FOUNDRY_BASE_URL
|
|
35
|
+
ANTHROPIC_FOUNDRY_RESOURCE ANTHROPIC_GOOGLE_CLOUD_BASE_URL
|
|
36
|
+
ANTHROPIC_MODEL ANTHROPIC_ORGANIZATION_ID ANTHROPIC_PROFILE
|
|
37
|
+
ANTHROPIC_SMALL_FAST_MODEL ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
|
|
38
|
+
ANTHROPIC_UNIX_SOCKET ANTHROPIC_VERTEX_BASE_URL
|
|
39
|
+
ANTHROPIC_VERTEX_PROJECT_ID ANTHROPIC_WORKSPACE_ID
|
|
40
|
+
AWS_BEARER_TOKEN_BEDROCK AWS_ENDPOINT_URL AWS_ENDPOINT_URL_BEDROCK
|
|
41
|
+
AWS_ENDPOINT_URL_BEDROCK_RUNTIME CLAUDE_CODE_API_BASE_URL
|
|
42
|
+
CLAUDE_CODE_AUTO_MODE_MODEL CLAUDE_CODE_BG_CLASSIFIER_MODEL
|
|
43
|
+
CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK
|
|
44
|
+
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC CLAUDE_CODE_EXTRA_BODY
|
|
45
|
+
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST CLAUDE_CODE_SKIP_BEDROCK_AUTH
|
|
46
|
+
CLAUDE_CODE_SKIP_FOUNDRY_AUTH CLAUDE_CODE_SKIP_MANTLE_AUTH
|
|
47
|
+
CLAUDE_CODE_SKIP_VERTEX_AUTH CLAUDE_CODE_SUBAGENT_MODEL
|
|
48
|
+
CLAUDE_CODE_SUBAGENT_MODEL_FORCE CLAUDE_CODE_USE_ANTHROPIC_AWS
|
|
49
|
+
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD CLAUDE_CODE_USE_BEDROCK
|
|
50
|
+
CLAUDE_CODE_USE_FOUNDRY CLAUDE_CODE_USE_GATEWAY CLAUDE_CODE_USE_MANTLE
|
|
51
|
+
CLAUDE_CODE_USE_VERTEX CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL
|
|
52
|
+
CLOUDSDK_CORE_PROJECT GOOGLE_API_KEY GOOGLE_APPLICATION_CREDENTIALS
|
|
53
|
+
GOOGLE_CLOUD_LOCATION GOOGLE_CLOUD_PROJECT GOOGLE_CLOUD_QUOTA_PROJECT
|
|
54
|
+
GOOGLE_GENAI_USE_ENTERPRISE GOOGLE_GENAI_USE_VERTEXAI OPENAI_API_KEY
|
|
55
|
+
OPENAI_BASE_URL OPENAI_ORGANIZATION OPENAI_PROJECT UAI_CUSTOM_API_KEY
|
|
56
|
+
UAI_INFERENCE_TOKEN _CLAUDE_CODE_ASSUME_FIRST_PARTY_BASE_URL
|
|
57
|
+
'
|
|
58
|
+
# CONNECTION_RESTORED_ENV_NAMES, only on a connection launch (only it sets
|
|
59
|
+
# them; a native engine keeps a project's AWS_REGION, AWS_PROFILE, …);
|
|
60
|
+
__uai_connection_names='
|
|
61
|
+
AWS_ACCESS_KEY_ID AWS_CONFIG_FILE AWS_CONTAINER_AUTHORIZATION_TOKEN
|
|
62
|
+
AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE
|
|
63
|
+
AWS_CONTAINER_CREDENTIALS_FULL_URI
|
|
64
|
+
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI AWS_DEFAULT_PROFILE
|
|
65
|
+
AWS_DEFAULT_REGION AWS_EC2_METADATA_DISABLED
|
|
66
|
+
AWS_EC2_METADATA_SERVICE_ENDPOINT AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE
|
|
67
|
+
AWS_MAX_ATTEMPTS AWS_PROFILE AWS_REGION AWS_ROLE_ARN
|
|
68
|
+
AWS_ROLE_SESSION_NAME AWS_SDK_LOAD_CONFIG AWS_SECRET_ACCESS_KEY
|
|
69
|
+
AWS_SECURITY_TOKEN AWS_SESSION_TOKEN AWS_SHARED_CREDENTIALS_FILE
|
|
70
|
+
AWS_WEB_IDENTITY_TOKEN_FILE
|
|
71
|
+
'
|
|
72
|
+
# CODEX_UNSET_ONLY_NAMES: codex refuses an empty value, so a non-empty one is
|
|
73
|
+
# kept and anything else (the loader container's empty placeholder for a
|
|
74
|
+
# declared name, or unset) leaves them unset.
|
|
75
|
+
__uai_unset_only_names='
|
|
76
|
+
OPENAI_FEDERATION_RULE_ID OPENAI_IDENTITY_TOKEN_FILE
|
|
77
|
+
'
|
|
78
|
+
__uai_saved=$__uai_keep_names
|
|
79
|
+
if [ "${UAI_CUSTOM_CONNECTION-}" = "1" ]; then
|
|
80
|
+
__uai_saved="$__uai_saved $__uai_connection_names"
|
|
81
|
+
fi
|
|
82
|
+
for __uai_n in $__uai_saved; do
|
|
83
|
+
eval "__uai_keep_set_$__uai_n=\${$__uai_n+1}; __uai_keep_val_$__uai_n=\${$__uai_n-}"
|
|
84
|
+
done
|
|
85
|
+
for __uai_n in $__uai_unset_only_names; do
|
|
86
|
+
eval "__uai_keep_set_$__uai_n=\${$__uai_n:+1}; __uai_keep_val_$__uai_n=\${$__uai_n-}"
|
|
87
|
+
done
|
|
20
88
|
# shellcheck source=/dev/null
|
|
21
89
|
. "$__uai_hook"
|
|
22
90
|
__uai_env_sync
|
|
23
|
-
|
|
91
|
+
__uai_changed=0
|
|
92
|
+
for __uai_n in $__uai_saved $__uai_unset_only_names; do
|
|
93
|
+
eval "__uai_was=\${__uai_keep_set_$__uai_n-}; __uai_old=\${__uai_keep_val_$__uai_n-}"
|
|
94
|
+
eval "__uai_is=\${$__uai_n+1}; __uai_now=\${$__uai_n-}"
|
|
95
|
+
if [ "$__uai_was" != "$__uai_is" ] || [ "$__uai_old" != "$__uai_now" ]; then
|
|
96
|
+
__uai_changed=1
|
|
97
|
+
if [ "$__uai_was" = "1" ]; then
|
|
98
|
+
eval "export $__uai_n=\"\$__uai_old\""
|
|
99
|
+
else
|
|
100
|
+
unset "$__uai_n"
|
|
101
|
+
fi
|
|
102
|
+
fi
|
|
103
|
+
unset "__uai_keep_set_$__uai_n" "__uai_keep_val_$__uai_n"
|
|
104
|
+
done
|
|
105
|
+
# The engine's own commands sync again in their shells; without this ETag
|
|
106
|
+
# they get the whole document, so the project's app still sees these names.
|
|
107
|
+
if [ "$__uai_changed" = "1" ]; then
|
|
108
|
+
unset __UAI_ENV_ETAG
|
|
109
|
+
fi
|
|
110
|
+
unset __uai_hook __uai_keep_names __uai_connection_names __uai_unset_only_names __uai_saved \
|
|
111
|
+
__uai_n __uai_was __uai_old __uai_is __uai_now __uai_changed
|
|
24
112
|
fi
|
|
25
113
|
|
|
26
114
|
exec -- "$@"
|
package/src/cloud-credentials.ts
CHANGED
|
@@ -77,6 +77,8 @@ export const ENGINE_ENV_CREDENTIAL_KEYS: Readonly<Record<string, readonly string
|
|
|
77
77
|
claude: ["CLAUDE_CODE_OAUTH_TOKEN", "ANTHROPIC_API_KEY", "ANTHROPIC_AUTH_TOKEN"],
|
|
78
78
|
cursor: ["CURSOR_API_KEY"],
|
|
79
79
|
grok: ["XAI_API_KEY"],
|
|
80
|
+
// ADR-178: a pasted Gemini API key (agy with modelProvider "gemini").
|
|
81
|
+
gemini: ["GEMINI_API_KEY"],
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
/** The files a config-directory engine's account may carry, per engine kind:
|
|
@@ -85,6 +87,10 @@ export const ENGINE_CREDENTIAL_FILES: Readonly<Record<string, readonly string[]>
|
|
|
85
87
|
codex: ["auth.json"],
|
|
86
88
|
grok: ["auth.json"],
|
|
87
89
|
opencode: ["auth.json"],
|
|
90
|
+
// ADR-178: agy's whole sign-in, kept opaque and carried in full (refresh
|
|
91
|
+
// token included) because only agy may renew it. No token lane ever matches
|
|
92
|
+
// gemini, so capture stores no broker part and the broker never refreshes.
|
|
93
|
+
gemini: ["antigravity-oauth-token"],
|
|
88
94
|
};
|
|
89
95
|
|
|
90
96
|
/** The engine kinds whose agents run on an AI account from the lease. */
|
|
@@ -3,6 +3,8 @@ export const ENGINE_ACCOUNT_PATHS = {
|
|
|
3
3
|
grok: { defaultContainerDir: "/home/node/.grok", containerDirPrefix: "/home/node/.grok-acct-" },
|
|
4
4
|
codex: { defaultContainerDir: "/home/node/.codex", containerDirPrefix: "/home/node/.codex-acct-" },
|
|
5
5
|
opencode: { defaultContainerDir: "/home/node/.local/share/opencode", containerDirPrefix: "/home/node/.local/share/opencode-acct-" },
|
|
6
|
+
// ADR-178: agy's own default home, and the per-account (per-agent) gemini dirs.
|
|
7
|
+
gemini: { defaultContainerDir: "/home/node/.gemini", containerDirPrefix: "/home/node/.gemini-acct-" },
|
|
6
8
|
} as const;
|
|
7
9
|
/** Relative to the home, so safeguards cover relocated homes and symlinks too. */
|
|
8
10
|
export const ENGINE_ACCOUNT_PATH_RULES = Object.values(ENGINE_ACCOUNT_PATHS).flatMap((path) => [
|
package/src/engine-usage.ts
CHANGED
|
@@ -48,6 +48,7 @@ const BILLING_BY_VARIABLE: Readonly<
|
|
|
48
48
|
}),
|
|
49
49
|
cursor: Object.freeze({ CURSOR_API_KEY: "api-key" }),
|
|
50
50
|
grok: Object.freeze({ XAI_API_KEY: "api-key" }),
|
|
51
|
+
gemini: Object.freeze({ GEMINI_API_KEY: "api-key" }),
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
/** The billing lane when one leased variable name tells it unambiguously. */
|
package/src/index.ts
CHANGED
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
renameEngineAccount,
|
|
184
184
|
reorderEngineAccounts,
|
|
185
185
|
} from "../lib/engine-accounts";
|
|
186
|
-
import { disconnectEngine } from "../lib/engines";
|
|
186
|
+
import { disconnectEngine, isEngineKind } from "../lib/engines";
|
|
187
187
|
|
|
188
188
|
export {
|
|
189
189
|
parseMentions,
|
|
@@ -2221,6 +2221,9 @@ export const hostCommands: HostCommands = {
|
|
|
2221
2221
|
async engineDisconnect(ctx, input) {
|
|
2222
2222
|
logCommand(ctx, "engineDisconnect", input.engine);
|
|
2223
2223
|
try {
|
|
2224
|
+
// Gemini (ADR-178) has no runner-local sign-in to disconnect: its
|
|
2225
|
+
// accounts live only in the cloud vault.
|
|
2226
|
+
if (!isEngineKind(input.engine)) return ok({ disconnected: true });
|
|
2224
2227
|
disconnectEngine(input.engine);
|
|
2225
2228
|
return ok({ disconnected: true });
|
|
2226
2229
|
} catch (err) {
|
package/src/main.ts
CHANGED
|
@@ -1327,7 +1327,13 @@ const engineLoginManager = createEngineLoginManager({
|
|
|
1327
1327
|
flow,
|
|
1328
1328
|
engine,
|
|
1329
1329
|
material,
|
|
1330
|
-
engine === "claude"
|
|
1330
|
+
engine === "claude"
|
|
1331
|
+
? "Claude"
|
|
1332
|
+
: engine === "codex"
|
|
1333
|
+
? "Codex"
|
|
1334
|
+
: engine === "gemini"
|
|
1335
|
+
? "Gemini"
|
|
1336
|
+
: "Grok",
|
|
1331
1337
|
),
|
|
1332
1338
|
},
|
|
1333
1339
|
}
|
package/src/protocol.ts
CHANGED
|
@@ -226,7 +226,7 @@ export interface EngineUsageFrame {
|
|
|
226
226
|
reportId: string;
|
|
227
227
|
taskId: string;
|
|
228
228
|
agentId: string;
|
|
229
|
-
engine: "claude" | "codex" | "grok" | "cursor" | "opencode";
|
|
229
|
+
engine: "claude" | "codex" | "grok" | "cursor" | "opencode" | "gemini";
|
|
230
230
|
/** The `uai_credentials` id the agent's session runs on. */
|
|
231
231
|
credentialId: string;
|
|
232
232
|
/** How this account is paid for, when the leased variable's NAME tells the
|
|
@@ -3323,7 +3323,8 @@ export type HostLogsEndFrame =
|
|
|
3323
3323
|
* name pattern, the wire guard, and the cloud validator all derive from it
|
|
3324
3324
|
* (a kind added to the type alone left grok containers unrecognized by the
|
|
3325
3325
|
* stale-container sweep, which then refused EVERY login — live 2026-09-09). */
|
|
3326
|
-
|
|
3326
|
+
// gemini (ADR-178): `agy acp --login`, a URL plus a pasted code like claude.
|
|
3327
|
+
export const ENGINE_LOGIN_KINDS = ["claude", "codex", "grok", "gemini"] as const;
|
|
3327
3328
|
export type EngineLoginKind = (typeof ENGINE_LOGIN_KINDS)[number];
|
|
3328
3329
|
export type EngineLoginPhase =
|
|
3329
3330
|
| "starting"
|
|
@@ -3455,7 +3456,8 @@ export type EngineConnectKind =
|
|
|
3455
3456
|
| "kimi"
|
|
3456
3457
|
| "grok"
|
|
3457
3458
|
| "cursor"
|
|
3458
|
-
| "opencode"
|
|
3459
|
+
| "opencode"
|
|
3460
|
+
| "gemini";
|
|
3459
3461
|
|
|
3460
3462
|
/** ADR-117: one catalog row per engine, advertised in capabilities so the
|
|
3461
3463
|
* cloud pane renders every engine from host truth — including the exact
|
|
@@ -3520,7 +3522,8 @@ export function isEngineConnectKind(
|
|
|
3520
3522
|
value === "kimi" ||
|
|
3521
3523
|
value === "grok" ||
|
|
3522
3524
|
value === "cursor" ||
|
|
3523
|
-
value === "opencode"
|
|
3525
|
+
value === "opencode" ||
|
|
3526
|
+
value === "gemini"
|
|
3524
3527
|
);
|
|
3525
3528
|
}
|
|
3526
3529
|
|