codex-copilot-dx 1.3.23 → 1.3.24

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use your model services in **Codex App, Claude App and Claude Code** through one local gateway.
4
4
 
5
- On macOS, the optional Gemini integration adds Copilot Carbon and Argon to the original App's Antigravity. Ordinary Gemini chat keeps Google. Set it up on the Gemini page; inspect it with `ccdx app gemini status`. Existing clients keep their setup.
5
+ On macOS, the optional Gemini integration adds Copilot Carbon and Argon to the original App's Antigravity. Ordinary Gemini chat keeps Google. Set it up on the Antigravity page; inspect it with `ccdx app antigravity status`. Existing clients keep their setup.
6
6
 
7
7
  Connect GitHub Copilot, Microsoft 365 or your own API. Choose which apps can use each source, then select their models. CI and prebuilt releases cover **macOS on Apple Silicon** and **Windows on x64/ARM64**. Intel Mac code remains available, without CI coverage or new prebuilt assets.
8
8
 
@@ -50,7 +50,7 @@ Model availability depends on your account and service. Microsoft 365 also requi
50
50
  | Sign in again | `ccdx source github reauth` |
51
51
  | Choose client models | `ccdx app codex models --edit` |
52
52
  | Preview client setup | `ccdx app claude-app sync --preview` |
53
- | Set up Gemini Antigravity | `ccdx app gemini status` / `enable` / `open` |
53
+ | Set up Antigravity | `ccdx app antigravity status` / `enable` / `open` |
54
54
  | Inspect failures | `ccdx requests --failed` |
55
55
  | Read usage | `ccdx usage` / `ccdx usage --scope run` |
56
56
  | Inspect preferences | `ccdx config show --effective` |
package/docs/REFERENCE.md CHANGED
@@ -54,17 +54,23 @@ For scripts, source access accepts `--apps codex,claude-app` with `--edit`; edit
54
54
 
55
55
  An app model file contains `deployments: [{"source":"github","model":"<model-id>"}]`, with optional `default_model` and `auto_sync`. An explicit empty array clears the default and pauses access. A file without `deployments` is rejected. Unavailable saved selections remain visible until the user changes them.
56
56
 
57
- ## Gemini App and Antigravity (candidate)
57
+ ## Antigravity in Gemini App
58
58
 
59
- The optional **Gemini** page and `ccdx app gemini status|models|enable|disable|open`
59
+ The **Antigravity** page and `ccdx app antigravity status|models|enable|disable|open`
60
60
  manage the original macOS Gemini App. Enable requires acceptance of this data
61
61
  scope: Antigravity main answers follow the selected Google or Copilot model;
62
62
  all Antigravity summaries, searches and image generation use GitHub Copilot,
63
63
  including background work from Google-model sessions. Ordinary Gemini chat
64
64
  keeps its Google route. No OpenAI account or search fallback is used.
65
65
 
66
- `app list` uses already observed Gemini state without waiting for native App
67
- inspection. Use `app gemini status` to check the signed installation explicitly.
66
+ `app list` includes Antigravity before its first WebUI visit and uses observed state without waiting for native App
67
+ inspection. Use `app antigravity status` to check the signed installation explicitly.
68
+ The old `app gemini` commands remain available. Authorize Antigravity on the GitHub
69
+ Copilot source page, or with `source github access --edit --apps codex,antigravity --yes`.
70
+ Choose its exposed models on the Antigravity page or with
71
+ `app antigravity models --edit`. A model file uses `{"models":["<ccdx-copilot-model-id>"]}`.
72
+ Saving model selection requires reopening Gemini through CCDX to reload its model list.
73
+ The page distinguishes enabled access from an observed client connection.
68
74
 
69
75
  Carbon and Argon appear with Low, Medium and High reasoning levels when the
70
76
  Copilot account advertises them. Google models, account controls and defaults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "Local gateway for Codex, Claude and Gemini Antigravity with Copilot, Microsoft 365 and custom APIs",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
package/src/adapter.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { imageModelCatalog } from "./image-models.mjs";
2
2
  import http from "node:http";
3
+ import { readUserSettings } from "./user-settings.mjs";
3
4
  import { createNativeImagesHandler } from "./native-images.mjs";
4
5
  import { defaultCopilotClient } from "./copilot.mjs";
5
6
  import { buildCodexModelResponse } from "./codex-model-catalog.mjs";
@@ -245,7 +246,10 @@ export function createAdapterHandler(options = {}) {
245
246
  }
246
247
  try { snapshot.local_privacy = privacy.snapshot(); }
247
248
  catch { snapshot.local_privacy = { state: "error", error: "ccdx_privacy_settings_invalid" }; }
248
- return { ...snapshot, ...(antigravity ? { gemini: antigravity.snapshot() } : {}), http_errors: httpErrors.snapshot(), ...(providers ? { providers } : {}) };
249
+ let gemini;
250
+ try { const saved=readUserSettings({env:options.env,home:options.dashboardOptions?.home});gemini=antigravity?antigravity.snapshot():{configured:Object.hasOwn(saved,"gemini_antigravity_enabled"),enabled:saved.gemini_antigravity_enabled===true,route_observed:false}; }
251
+ catch { gemini={enabled:false,error:"ccdx_antigravity_settings_invalid"}; }
252
+ return { ...snapshot, gemini, http_errors: httpErrors.snapshot(), ...(providers ? { providers } : {}) };
249
253
  },
250
254
  });
251
255
  const responsesHandler = createResponsesHandler({
@@ -30,7 +30,7 @@ function groundedSearch(result,query){
30
30
  groundingMetadata:{webSearchQueries:[query],groundingChunks:sources.map(item=>({web:{uri:item.url,title:item.title||item.url}}))}}]};
31
31
  }
32
32
 
33
- export function createAntigravityHandler({client,models=()=>[],enabled=()=>false,privacy,searchFn,imageFn,guardSource,acquireRequest=async()=>()=>{},
33
+ export function createAntigravityHandler({client,models=()=>[],selectedModels=()=>null,enabled=()=>false,privacy,searchFn,imageFn,guardSource,acquireRequest=async()=>()=>{},
34
34
  fetchGoogle=fetch,googleOrigin=GOOGLE_ORIGIN,requestBodyTimeoutMs=120000,upstreamTimeoutMs=180000,streamIdleTimeoutMs=60000}={}) {
35
35
  if(![GOOGLE_ORIGIN,"https://cloudcode-pa.googleapis.com"].includes(googleOrigin))throw new Error("Unrecognized Google control origin");
36
36
  let active=0,observed=false;
@@ -61,7 +61,7 @@ export function createAntigravityHandler({client,models=()=>[],enabled=()=>false
61
61
  if(generation)markUpstreamHeaders(upstream.status);
62
62
  if(method==="fetchAvailableModels"&&upstream.ok){
63
63
  const value=JSON.parse(await readBoundedResponseText(upstream,{maxBytes:8*1024*1024,signal:abort.signal,label:"Google model catalog"}));
64
- const merged=mergeAntigravityModels(value,models());
64
+ const merged=mergeAntigravityModels(value,models(),selectedModels());
65
65
  res.writeHead(200,{"Content-Type":"application/json","Cache-Control":"no-store"});res.end(JSON.stringify(merged));return;
66
66
  }
67
67
  res.writeHead(upstream.status,safeUpstreamResponseHeaders(upstream.headers));
@@ -74,7 +74,7 @@ export function createAntigravityHandler({client,models=()=>[],enabled=()=>false
74
74
  observed=true;return await native();
75
75
  }
76
76
  if(req.method!=="POST"||!body||typeof body.model!=="string"||!body.request)throw httpError("Invalid Antigravity generation request",400);
77
- const copilotModels=antigravityCopilotModels(models()),selected=copilotModels.find(model=>model.id===body.model);
77
+ const selection=selectedModels(),copilotModels=antigravityCopilotModels(models()),selected=copilotModels.find(model=>model.id===body.model&&(selection===null||selection.includes(model.id)));
78
78
  if(body.requestType==="agent"&&!selected){
79
79
  if(body.model.startsWith(ANTIGRAVITY_MODEL_PREFIX))throw httpError("The selected Copilot model is unavailable",503);
80
80
  await guardSource?.(body,"google",abort.signal);
@@ -13,9 +13,9 @@ export function antigravityCopilotModels(catalog) {
13
13
  })));
14
14
  }
15
15
 
16
- export function mergeAntigravityModels(googleCatalog,copilotCatalog) {
16
+ export function mergeAntigravityModels(googleCatalog,copilotCatalog,selection=null) {
17
17
  if(!googleCatalog?.models||typeof googleCatalog.models!=="object"||Array.isArray(googleCatalog.models))throw new Error("Unrecognized Google model catalog");
18
- const entries=antigravityCopilotModels(copilotCatalog),models={...googleCatalog.models};
18
+ const entries=antigravityCopilotModels(copilotCatalog).filter(model=>selection===null||selection.includes(model.id)),models={...googleCatalog.models};
19
19
  if(!entries.length)return googleCatalog;
20
20
  const used=new Set(Object.values(models).map(model=>model?.model));let next=500;
21
21
  for(const entry of entries){
@@ -18,7 +18,7 @@ import {withFileLockSync} from "./lock.mjs";
18
18
  import {httpError} from "./http-errors.mjs";
19
19
  import {antigravityCopilotModels} from "./antigravity-models.mjs";
20
20
 
21
- const execute=promisify(execFile),key="gemini_antigravity_enabled";
21
+ const execute=promisify(execFile),key="gemini_antigravity_enabled",modelKey="gemini_antigravity_models";
22
22
 
23
23
  export function createAntigravityRuntime({client,models=()=>[],privacy,home=os.homedir(),env=process.env,inspect=inspectGeminiApp,
24
24
  exec=execute,searchFn,imageFn,guardSource,googleFetch,acquireRequest,readToken=()=>readSavedGithubToken(home),...timeouts}={}) {
@@ -28,7 +28,8 @@ export function createAntigravityRuntime({client,models=()=>[],privacy,home=os.h
28
28
  const settings=()=>{
29
29
  const saved=readUserSettings({...options,strict:true});
30
30
  if(saved[key]!==undefined&&typeof saved[key]!=="boolean")throw httpError("Invalid Gemini integration setting",409);
31
- return {configured:Object.hasOwn(saved,key),enabled:saved[key]===true};
31
+ if(saved[modelKey]!==undefined&&(!Array.isArray(saved[modelKey])||saved[modelKey].length>100||new Set(saved[modelKey]).size!==saved[modelKey].length||saved[modelKey].some(id=>typeof id!=="string"||!/^ccdx-copilot-[a-z0-9-]{1,140}$/.test(id))))throw httpError("Invalid Antigravity model selection",409);
32
+ return {configured:Object.hasOwn(saved,key),enabled:saved[key]===true,selected_models:saved[modelKey]??null};
32
33
  };
33
34
  const available=()=>settings().enabled&&readAccessSettings(options).providers.github?models():[];
34
35
  const sourceGuard=guardSource||((body,source,signal)=>{
@@ -37,18 +38,27 @@ export function createAntigravityRuntime({client,models=()=>[],privacy,home=os.h
37
38
  const profile=source==="github"?"codex:"+githubTokenFingerprint(readToken()||""):"google:gemini-native";
38
39
  return guard("gemini",profile,{messages:[]},{session_id:id},readClientGatewayKeys({...options,create:false}).codex,undefined,signal);
39
40
  });
40
- const handler=createAntigravityHandler({client,models:available,enabled:()=>settings().configured,privacy,searchFn:searchFn||web.search,
41
+ const handler=createAntigravityHandler({client,models:available,selectedModels:()=>settings().selected_models,enabled:()=>settings().configured,privacy,searchFn:searchFn||web.search,
41
42
  imageFn:imageFn||createAntigravityImages({client,models:available,privacy}),guardSource:sourceGuard,fetchGoogle:googleFetch,acquireRequest,...timeouts});
42
43
  function snapshot(){
43
44
  const config=settings();
44
- return {source:"gemini_antigravity",...config,app,route_observed:handler.snapshot().observed,
45
+ return {source:"gemini_antigravity",...config,source_enabled:readAccessSettings(options).providers.github,app,route_observed:handler.snapshot().observed,
45
46
  model_source:"Google + GitHub Copilot",background_source:"GitHub Copilot",ordinary_chat_source:"Google (unchanged)",
46
- models:antigravityCopilotModels(available()).map(({id,displayName})=>({id,name:displayName})),activity:handler.snapshot(),last_operation:lastOperation};
47
+ models:antigravityCopilotModels(available()).map(({id,displayName,effort,maxTokens})=>({id,name:displayName,effort,context_window:maxTokens,selected:config.selected_models===null||config.selected_models.includes(id)})),activity:handler.snapshot(),last_operation:lastOperation};
47
48
  }
48
49
  async function action(input={},baseUrl){
49
- if(input&&Object.keys(input).some(name=>!["action","accept_background_copilot"].includes(name)))throw httpError("Invalid Gemini operation",400);
50
+ if(input&&Object.keys(input).some(name=>!["action","accept_background_copilot","models"].includes(name)))throw httpError("Invalid Gemini operation",400);
50
51
  const operation=input.action||"status";
51
- if(!["status","enable","disable","open","preview"].includes(operation))throw httpError("Unknown Gemini operation",400);
52
+ if(!["status","summary","models","enable","disable","open","preview"].includes(operation))throw httpError("Unknown Gemini operation",400);
53
+ if(input.models!==undefined&&operation!=="models")throw httpError("Models require the models operation",400);
54
+ if(operation==="models"){
55
+ const ids=input.models,known=new Set(antigravityCopilotModels(models()).map(model=>model.id));
56
+ if(!Array.isArray(ids)||ids.length>100||new Set(ids).size!==ids.length||ids.some(id=>!known.has(id)))throw httpError("Choose available Antigravity models",400);
57
+ const file=userSettingsPath(options);fs.mkdirSync(path.dirname(file),{recursive:true,mode:0o700});
58
+ withFileLockSync(file+".lock",()=>{const saved=readUserSettings({...options,strict:true});atomicWriteFileIfChangedSync(file,JSON.stringify({...saved,[modelKey]:ids},null,2)+"\n",{mode:0o600})});
59
+ lastOperation={action:operation,status:"models_saved"};
60
+ }
61
+ if(operation==="summary")return snapshot();
52
62
  if(["enable","disable"].includes(operation)){
53
63
  if(operation==="enable"&&input.accept_background_copilot!==true)throw httpError("Antigravity background requests use GitHub Copilot; accept this scope before enabling",400);
54
64
  if(operation==="enable")readClientGatewayKeys(options);
@@ -106,8 +106,8 @@ export const MANAGED_COMMANDS = [
106
106
  )
107
107
  ),
108
108
  command("app list", "List client configuration and observed activity", read),
109
- ...["status", "models", "enable", "disable", "open"].map(action => command(`app gemini ${action}`,
110
- ({status:"Inspect Gemini App and Antigravity setup",models:"List Copilot models added to Antigravity",enable:"Enable Antigravity routing and Copilot background requests",disable:"Pause Antigravity Copilot access; reopen Gemini for native routing",open:"Open the original Gemini App with its prepared route"})[action], {...read,...confirm})),
109
+ ...["gemini", "antigravity"].flatMap(app => ["status", "models", "enable", "disable", "open"].map(action => command(`app ${app} ${action}`,
110
+ ({status:"Inspect Gemini App and Antigravity setup",models:"List Copilot models added to Antigravity",enable:"Enable Antigravity routing and Copilot background requests",disable:"Pause Antigravity Copilot access; reopen Gemini for native routing",open:"Open the original Gemini App with its prepared route"})[action], {...read,...confirm,...(action==="models"?{"--edit":"flag","--file":"value"}:{})}))),
111
111
  command("app <app> status", "Show configuration, not process liveness", { ...read, "--details": "flag" }),
112
112
  command("app <app> models", "Show or edit the client's selected model plan", {
113
113
  ...read,
@@ -183,19 +183,27 @@ export async function runManagementCommand(command, options = {}) {
183
183
  writeSettingsPreferences(body, preferenceOptions);return print({ saved: settingsPreferencesSnapshot(preferenceOptions).values, effect: "Saved for the next CCDX start; no service was started" });
184
184
  }
185
185
  if (group === "app") {
186
- if (path[1] === "gemini") {
186
+ if (["gemini", "antigravity"].includes(path[1])) {
187
187
  if (["enable", "disable"].includes(action)) {
188
188
  const preview = { action, background_source: "GitHub Copilot (all Antigravity summaries, searches and image generation)", ordinary_Gemini_chat: "Google; no routing change" };
189
189
  if (flags.preview) return print(preview);
190
190
  output.write(print(preview) + "\n");await confirm(action === "enable" ? "Enable this Antigravity-only routing scope?" : "Pause Copilot access? Reopen Gemini afterward to restore its native route.");
191
191
  }
192
+ if(action==="models"&&flags.edit){
193
+ const state=await request({path:"gemini"});
194
+ const ids=flags.file?readFile().models:(await choose(state.models.map(model=>model.name),state.models.flatMap((model,index)=>model.selected!==false?[index]:[]))).map(index=>state.models[index].id);
195
+ if(!Array.isArray(ids)||new Set(ids).size!==ids.length||ids.some(id=>!state.models.some(model=>model.id===id)))throw new Error("Choose listed Antigravity model IDs.");
196
+ if(flags.preview)return print({models:ids,saved:false});
197
+ await confirm("Save Antigravity model selection? Reopen Gemini afterward to reload it.");
198
+ return print(await request({path:"gemini",body:{action:"models",models:ids}}));
199
+ }
192
200
  const state = await request({ path: "gemini", ...(["status", "models"].includes(action) ? {} : { body: { action: flags.preview ? "preview" : action, ...(action === "enable" ? { accept_background_copilot: true } : {}) }, timeoutMs: 20000 }) });
193
201
  return print(action === "models" ? state.models : state);
194
202
  }
195
203
  const graph = await connection(), snapshot = (await readStatus()).data, view = projectTerminalState(snapshot);
196
204
  if (action === "list") {
197
205
  const clients=[...view.clients];
198
- if(!clients.some(client=>client.id==="gemini"))clients.push({id:"gemini",name:"Gemini · Antigravity",setup:"Not checked",active:null});
206
+ if(!clients.some(client=>client.id==="antigravity"))clients.push({id:"antigravity",name:"Antigravity",setup:"Not checked",active:null});
199
207
  return print(clients, [["id", "ID"], ["name", "Client"], ["setup", "Setup"], ["active", "Active"]]);
200
208
  }
201
209
  const id = ids.app ? CLI_CLIENTS[ids.app] : "codex", client = getClient(graph, id), modelPlan = client.model_plan;
@@ -308,14 +316,22 @@ export async function runManagementCommand(command, options = {}) {
308
316
  return print(source.builtin ? await request({ path: `models/live?provider=${encodeURIComponent(id)}`, timeoutMs: 60000 }) : (await save({ operation: "discover", id })).discovered);
309
317
  }
310
318
  if (action === "access") {
311
- const current = graph.clients.filter(client => client.allowed.includes(id)).map(client => client.id);
312
- if (!flags.edit) return print({ source: id, authorized_clients: current.map(value => Object.keys(CLI_CLIENTS).find(key => CLI_CLIENTS[key] === value)), consuming_clients: graph.source_impacts?.[id]?.clients || [] });
313
- const allowed = flags.apps !== undefined ? flags.apps === "none" ? [] : flags.apps.split(",").map(app => { if (!CLI_CLIENTS[app]) throw new Error("Use listed client IDs, or none.");return CLI_CLIENTS[app]; })
314
- : (await choose(graph.clients.map(client => TERMINAL_CLIENT_NAMES[client.id]), graph.clients.flatMap((client, index) => current.includes(client.id) ? [index] : []))).map(index => graph.clients[index].id);
315
- output.write(print({ source: id, before: current, after: allowed, effect: "Revoked routes are removed; added grants do not select models" }) + "\n");
319
+ const integration=id==="github"?await request({path:"gemini?scope=summary"}):null;
320
+ const candidates=[...graph.clients.filter(client=>id!=="github"||client.id==="codex"),...(integration?[{id:"antigravity",name:"Antigravity"}]:[])];
321
+ const current=[...graph.clients.filter(client=>client.allowed.includes(id)).map(client=>client.id),...(integration?.enabled?["antigravity"]:[])];
322
+ if (!flags.edit) return print({ source: id, authorized_clients: current.map(value => value==="antigravity"?value:Object.keys(CLI_CLIENTS).find(key => CLI_CLIENTS[key] === value)), consuming_clients: graph.source_impacts?.[id]?.clients || [] });
323
+ const allowed = flags.apps !== undefined ? flags.apps === "none" ? [] : flags.apps.split(",").map(app => { const client=app==="antigravity"?app:CLI_CLIENTS[app];if (!candidates.some(item=>item.id===client)) throw new Error("Use listed client IDs, or none.");return client; })
324
+ : (await choose(candidates.map(client => client.name||TERMINAL_CLIENT_NAMES[client.id]), candidates.flatMap((client, index) => current.includes(client.id) ? [index] : []))).map(index => candidates[index].id);
325
+ if(new Set(allowed).size!==allowed.length)throw new Error("Choose unique client IDs.");
326
+ output.write(print({ source: id, before: current, after: allowed, effect: integration?"Antigravity uses Copilot for models and background requests; ordinary Gemini chat keeps Google":"Revoked routes are removed; added grants do not select models" }) + "\n");
316
327
  if (flags.preview) return "Preview only; access unchanged.";await confirm("Save source authorization for these clients?");
317
- const result = await save({ operation: "source_access", id, allowed, impact_revision: graph.source_impacts[id].revision });
318
- return print({ source: id, authorized_clients: result.clients.filter(client => client.allowed.includes(id)).map(client => TERMINAL_CLIENT_NAMES[client.id]), saved: true });
328
+ const base=allowed.filter(value=>value!=="antigravity");
329
+ const result = await save({ operation: "source_access", id, allowed:base, impact_revision: graph.source_impacts[id].revision });
330
+ if(integration&&integration.enabled!==allowed.includes("antigravity")){
331
+ try{await request({path:"gemini",body:{action:allowed.includes("antigravity")?"enable":"disable",...(allowed.includes("antigravity")?{accept_background_copilot:true}:{})}})}
332
+ catch(error){throw new Error("Other client access was saved, but Antigravity access could not be changed: "+error.message)}
333
+ }
334
+ return print({ source: id, authorized_clients: [...result.clients.filter(client => client.allowed.includes(id)).map(client => TERMINAL_CLIENT_NAMES[client.id]),...(allowed.includes("antigravity")?["Antigravity"]:[])], saved: true });
319
335
  }
320
336
  if (["enable", "disable", "remove"].includes(action)) {
321
337
  const impact = graph.source_impacts?.[id];
@@ -62,7 +62,7 @@
62
62
  const row = node("div", undefined, "connection-row"), info = node("div"), actions = node("div", undefined, "connection-actions");info.append(node("h3", provider.name));
63
63
  if (!provider.builtin) info.append(node("p", provider.base_url, "hint"));
64
64
  if (provider.enabled) {
65
- const allowed = data.clients.filter(c => c.enabled && c.allowed.includes(provider.id)).map(c => c.name).join(" / ");
65
+ const allowed = [...data.clients.filter(c => c.enabled && c.allowed.includes(provider.id)).map(c => c.name),...(provider.id === "github" && globalThis.ccdxGeminiStatus?.enabled ? ["Antigravity"] : [])].join(" / ");
66
66
  const line = node("p", undefined, "hint");words(line, "api_allowed_summary", { clients: allowed || format("api_none") });info.append(line);
67
67
  if (provider.discovery?.state === "stale") { const warning = node("p", undefined, "hint");words(warning, "cap_catalog_stale");warning.append(" ", provider.discovery.code);info.append(warning); }
68
68
  if (!provider.builtin) actions.append(button("api_manage", () => editApi(provider)));
@@ -493,6 +493,7 @@
493
493
  el("refresh").addEventListener("click", () => { if (["#models", "#codex", "#claude"].includes(location.hash)) void load(); });
494
494
  window.addEventListener("hashchange", () => { apiForm.elements.key.value = "";mountClient();if (["#models", "#claude", "#codex"].includes(location.hash)) void load(); });
495
495
  window.addEventListener("ccdx:choose-source", event => { if (typeof event.detail?.id === "string" && providerEntries.some(p => p.id === event.detail.id)) chooseProvider(event.detail.id); });
496
+ window.addEventListener("ccdx-gemini-state", () => { if (data) list(); });
496
497
  window.addEventListener("ccdx:source-view", () => { if (data) list(); });
497
498
  window.addEventListener("ccdx:providers", () => { if (desiredSource && providerEntries.some(p => p.id === desiredSource)) { const id = desiredSource;desiredSource = null;chooseProvider(id); }if (data) list(); });
498
499
  new MutationObserver(() => { if (data) list(); }).observe(document.documentElement, { attributes: true, attributeFilter: ["lang"] });
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  const el = id => document.getElementById(id);
3
3
  const label = (node, key, values = {}) => globalThis.ccdxLanguage.set(node, key, values);
4
- const titles = { overview: "overview", codex: "Codex", claude: "Claude", gemini: "Gemini", models: "model_services", usage: "usage_and_diagnostics", requests: "request_records", checks: "tools_checks_title", system: "system_and_settings" };
4
+ const titles = { overview: "overview", codex: "Codex", claude: "Claude", gemini: "Antigravity", models: "model_services", usage: "usage_and_diagnostics", requests: "request_records", checks: "tools_checks_title", system: "system_and_settings" };
5
5
  const settingsViews = ["codex", "claude", "models", "system", "checks"];
6
6
  let current = "overview", settings = null, settingsPending = false, stopped = false, timer = null, ticks = 0;
7
7
  let sourceDirty = false, reviewDirty = false, sourceModels = [], modelsPreference = null, sourceGeneration = 0, modelsSource = null;
@@ -1,27 +1,54 @@
1
1
  (() => {
2
2
  const el=id=>document.getElementById(id),language=globalThis.ccdxLanguage;
3
- let busy=false;
3
+ let busy=false,state=null,draft=null;
4
4
  const words=(id,key)=>language.set(el(id),key);
5
- async function load(action){
6
- if(busy)return;busy=true;
7
- for(const id of ["gemini-enable","gemini-disable","gemini-open","gemini-refresh"])el(id).disabled=true;
5
+ const controls=["gemini-enabled","github-antigravity-enabled","gemini-open","gemini-refresh","gemini-save","gemini-cancel"];
6
+ const selected=()=>state?.models.filter(model=>model.selected!==false).map(model=>model.id)||[];
7
+ const dirty=()=>draft!==null&&JSON.stringify([...draft].sort())!==JSON.stringify(selected().sort());
8
+ function render(){
9
+ for(const id of controls)el(id).disabled=busy||!state;
10
+ if(!state)return;
11
+ if(!busy)for(const id of ["gemini-enabled","github-antigravity-enabled"])el(id).checked=state.enabled;
12
+ el("gemini-save").disabled=busy||!dirty();el("gemini-cancel").disabled=busy||!dirty();
13
+ words("gemini-state",dirty()?"cap_unsaved":state.enabled&&state.source_enabled!==false?"gemini_enabled":"gemini_disabled");
14
+ words("gemini-route-state",state.last_operation?.status==="models_saved"?"gemini_models_saved":state.route_observed?"gemini_route_observed":"gemini_route_waiting");
15
+ el("gemini-version").textContent=state.app.version||"—";
16
+ words("gemini-app-state",state.app.status==="running"?"gemini_running":state.app.status==="stopped"?"gemini_stopped":state.app.status==="starting"?"gemini_starting":"gemini_unavailable");
17
+ el("gemini-reopen").hidden=!state.enabled||(state.route_observed&&state.last_operation?.status!=="models_saved");
18
+ const list=el("gemini-models");list.replaceChildren();
19
+ for(const model of state.models){
20
+ const row=document.createElement("tr"),name=document.createElement("td"),label=document.createElement("label"),input=document.createElement("input");
21
+ input.type="checkbox";input.value=model.id;input.checked=(draft||selected()).includes(model.id);input.disabled=busy;
22
+ input.addEventListener("change",()=>{const next=new Set(draft||selected());if(input.checked)next.add(model.id);else next.delete(model.id);draft=[...next];el("gemini-save").disabled=!dirty();el("gemini-cancel").disabled=!dirty();words("gemini-state",dirty()?"cap_unsaved":"cap_saved")});
23
+ label.append(input,document.createTextNode(model.name));name.append(label);row.append(name);
24
+ for(const [key,value] of [["source","GitHub Copilot"],["cap_context",model.context_window?new Intl.NumberFormat().format(model.context_window):"—"],["cap_reasoning",model.effort||"—"]]){
25
+ const cell=document.createElement("td");cell.textContent=value;language.set(cell,key,{},"data-label");row.append(cell);
26
+ }
27
+ list.append(row);
28
+ }
29
+ if(!state.models.length){const row=document.createElement("tr"),cell=document.createElement("td");cell.colSpan=4;language.set(cell,"gemini_no_models");row.append(cell);list.append(row)}
30
+ for(const id of ["active","failed","copilot","total"])el("gemini-"+id).textContent=state.activity?.[id]??"—";
31
+ }
32
+ async function load(action,extra={}){
33
+ if(busy)return;busy=true;render();
8
34
  try{
9
- const response=await fetch("/_ccdx/ui/gemini",{method:action?"POST":"GET",headers:{"X-CCDX-Dashboard":"1",...(action?{"Content-Type":"application/json"}:{})},
10
- cache:"no-store",signal:AbortSignal.timeout(20000),...(action?{body:JSON.stringify({action,...(action==="enable"?{accept_background_copilot:true}:{})})}:{})});
11
- const state=await response.json();if(!response.ok)throw new Error(state.error||"Gemini setup failed");
35
+ const response=await fetch("/_ccdx/ui/gemini"+(action==="summary"?"?scope=summary":""),{method:action&&action!=="summary"?"POST":"GET",headers:{"X-CCDX-Dashboard":"1",...(action&&action!=="summary"?{"Content-Type":"application/json"}:{})},
36
+ cache:"no-store",signal:AbortSignal.timeout(20000),...(action&&action!=="summary"?{body:JSON.stringify({action,...(action==="enable"?{accept_background_copilot:true}:{}),...extra})}:{})});
37
+ const value=await response.json();if(!response.ok)throw new Error(value.error||"Antigravity setup failed");
38
+ state=value;if(action==="models"||action==="disable")draft=null;
12
39
  globalThis.ccdxGeminiStatus=state;window.dispatchEvent(new Event("ccdx-gemini-state"));
13
- words("gemini-state",state.enabled?"gemini_enabled":"gemini_disabled");
14
- el("gemini-version").textContent=state.app.version||"—";
15
- words("gemini-app-state",state.app.status==="running"?"gemini_running":state.app.status==="stopped"?"gemini_stopped":state.app.status==="starting"?"gemini_starting":"gemini_unavailable");
16
- el("gemini-reopen").hidden=state.app.status!=="running";
17
- const list=el("gemini-models");list.replaceChildren();for(const model of state.models){const item=document.createElement("li");item.textContent=model.name;list.append(item)}
18
40
  const status=state.last_operation?.status;
19
- const notice=status==="needs_app_relaunch"?"gemini_reopen":status==="opened"?"gemini_opened":status==="route_conflict"?"gemini_conflict":null;
20
- if(notice)words("gemini-note",notice);else el("gemini-note").textContent="";
21
- }catch(error){el("gemini-note").textContent=error.message}
22
- finally{busy=false;for(const id of ["gemini-enable","gemini-disable","gemini-open","gemini-refresh"])el(id).disabled=false}
41
+ const notice=status==="models_saved"?"gemini_models_saved":status==="needs_app_relaunch"?"gemini_reopen":status==="opened"?"gemini_opened":status==="route_conflict"?"gemini_conflict":null;
42
+ for(const id of ["gemini-note","github-antigravity-note"])if(notice)words(id,notice);else el(id).textContent="";
43
+ }catch(error){for(const id of ["gemini-note","github-antigravity-note"])el(id).textContent=error.message}
44
+ finally{busy=false;render()}
23
45
  }
24
- for(const action of ["enable","disable","open"])el("gemini-"+action).addEventListener("click",()=>void load(action));
46
+ for(const id of ["gemini-enabled","github-antigravity-enabled"])el(id).addEventListener("change",event=>void load(event.target.checked?"enable":"disable"));
47
+ el("gemini-model-form").addEventListener("submit",event=>{event.preventDefault();if(dirty())void load("models",{models:draft})});
48
+ el("gemini-cancel").addEventListener("click",()=>{draft=null;render()});
49
+ el("gemini-open").addEventListener("click",()=>void load("open"));
25
50
  el("gemini-refresh").addEventListener("click",()=>void load());
26
- const navigate=()=>{if(location.hash==="#gemini")void load()};window.addEventListener("hashchange",navigate);navigate();
51
+ el("refresh").addEventListener("click",()=>{if(["#gemini","#models"].includes(location.hash))void load()});
52
+ const navigate=()=>{if(["#gemini","#models"].includes(location.hash))void load()};window.addEventListener("hashchange",navigate);
53
+ void load(["#gemini","#models"].includes(location.hash)?undefined:"summary");
27
54
  })();
@@ -20,7 +20,7 @@
20
20
  <span class="nav-group" data-i18n="clients">Apps</span>
21
21
  <a class="nav-child" href="#codex" data-route="codex"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="m7 8 4 4-4 4m7 0h3"/></svg><span>Codex</span></a>
22
22
  <a class="nav-child" href="#claude" data-route="claude"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3Z"/></svg><span>Claude</span></a>
23
- <a class="nav-child" href="#gemini" data-route="gemini"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2c1 6 4 9 10 10-6 1-9 4-10 10C11 16 8 13 2 12c6-1 9-4 10-10Z"/></svg><span>Gemini</span></a>
23
+ <a class="nav-child" href="#gemini" data-route="gemini"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2c1 6 4 9 10 10-6 1-9 4-10 10C11 16 8 13 2 12c6-1 9-4 10-10Z"/></svg><span>Antigravity</span></a>
24
24
  <a href="#models" data-route="models"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m12 3 10 5-10 5L2 8Zm-10 9 10 5 10-5M2 16l10 5 10-5"/></svg><span data-i18n="model_services">Model sources</span></a>
25
25
  <a href="#usage" data-route="usage"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3 3v18h18M7 16v-5m5 5V7m5 9V4"/></svg><span data-i18n="usage_and_diagnostics">Usage</span></a>
26
26
  <a href="#requests" data-route="requests"><svg class="nav-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg><span data-i18n="request_records">Requests</span></a>
@@ -163,15 +163,26 @@
163
163
  </details>
164
164
  </div>
165
165
  <div data-view="gemini" hidden>
166
+ <section class="connection-access"><div class="connection-row"><strong>Antigravity</strong><label class="switch-hit"><input id="gemini-enabled" type="checkbox" role="switch" aria-label="Antigravity" disabled></label></div></section>
166
167
  <section class="panel dashboard-section">
167
- <h2>Gemini · Antigravity</h2>
168
- <p id="gemini-state" data-i18n="gemini_disabled">Copilot integration is off</p>
169
- <p id="gemini-app-state">—</p><p><span data-i18n="gemini_version">Version</span>: <span id="gemini-version">—</span></p>
170
- <p class="hint" data-i18n="gemini_scope">Antigravity summaries, searches and image generation use Copilot. Ordinary Gemini chat keeps Google.</p>
171
- <div class="connection-actions"><button id="gemini-enable" type="button" data-i18n="gemini_enable">Enable Antigravity</button><button id="gemini-disable" type="button" data-i18n="gemini_disable">Pause Copilot</button><button id="gemini-open" type="button" data-i18n="gemini_open">Open Gemini</button><button id="gemini-refresh" type="button" data-i18n="refresh">Refresh</button></div>
172
- <p id="gemini-reopen" class="hint" data-i18n="gemini_reopen" hidden>Quit Gemini, then open it here. Active apps are never restarted automatically.</p>
173
- <ul id="gemini-models"></ul><p id="gemini-note" class="hint" role="status"></p>
168
+ <div class="panel-heading"><h2 data-i18n="model_catalog">Model list</h2><span id="gemini-state" role="status">—</span></div>
169
+ <p id="gemini-route-state" class="client-sync-state" role="status">—</p>
170
+ <p class="hint" data-i18n="gemini_scope">Antigravity models, summaries, searches and image generation use Copilot. Ordinary Gemini chat keeps Google.</p>
171
+ <form id="gemini-model-form">
172
+ <div class="table-wrap"><table class="binding-table"><thead><tr><th data-i18n="model">Model</th><th data-i18n="source">Source</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th></tr></thead><tbody id="gemini-models"></tbody></table></div>
173
+ <div class="section-actions"><button id="gemini-save" type="submit" data-i18n="api_save" disabled>Save</button><button id="gemini-cancel" type="button" data-i18n="cap_discard_changes" disabled>Discard changes</button></div>
174
+ </form>
175
+ <p id="gemini-note" class="hint" role="status" aria-live="polite"></p>
174
176
  </section>
177
+ <details class="panel dashboard-section" open>
178
+ <summary data-i18n="connection_details">Connection details</summary>
179
+ <p id="gemini-app-state" class="table-note">—</p><p class="hint"><span data-i18n="gemini_version">Version</span>: <span id="gemini-version">—</span></p>
180
+ <p id="gemini-reopen" class="hint" data-i18n="gemini_reopen" hidden>Quit Gemini, then open it here to load CCDX models.</p>
181
+ <div class="section-actions"><button id="gemini-open" type="button" data-i18n="gemini_open">Open Antigravity</button><button id="gemini-refresh" type="button" data-i18n="refresh">Refresh</button><a class="section-link" href="#models" data-source-link="github">GitHub Copilot</a></div>
182
+ </details>
183
+ <details class="panel dashboard-section"><summary data-i18n="request_performance">Request performance</summary>
184
+ <dl class="stats"><div><dt data-i18n="active">Active</dt><dd id="gemini-active">—</dd></div><div><dt data-i18n="failed">Failed</dt><dd id="gemini-failed">—</dd></div><div><dt>Copilot</dt><dd id="gemini-copilot">—</dd></div><div><dt data-i18n="requests">Requests</dt><dd id="gemini-total">—</dd></div></dl>
185
+ </details>
175
186
  </div>
176
187
 
177
188
  <div data-view="models" hidden>
@@ -225,6 +236,11 @@
225
236
  <button id="github-cancel" type="button" data-i18n="cancel">Cancel</button>
226
237
  <p class="hint" data-i18n="tools_keep_old_signin">Old sign-in is kept until verification succeeds.</p>
227
238
  </section>
239
+ <section class="tool-details" id="github-app-access"><h3 data-i18n="api_allowed_clients">Allowed clients</h3>
240
+ <div class="setting-row"><span>Codex</span><a class="section-link" href="#codex" data-i18n="api_manage">Manage</a></div>
241
+ <div class="setting-row"><label for="github-antigravity-enabled">Antigravity</label><input id="github-antigravity-enabled" type="checkbox" role="switch" disabled><a class="section-link" href="#gemini" data-i18n="api_manage">Manage</a></div>
242
+ <p class="hint" data-i18n="gemini_scope">Antigravity uses Copilot; ordinary Gemini chat keeps Google.</p><p id="github-antigravity-note" class="hint" role="status"></p>
243
+ </section>
228
244
  <p id="github-account-note" class="hint" role="status" aria-live="polite"></p>
229
245
  <details class="tool-details"><summary data-i18n="tools_details">Check details</summary><dl class="failure-detail"><dt data-i18n="tools_storage">Saved sign-in</dt><dd id="github-store">—</dd><dt data-i18n="tools_error_code">Error code</dt><dd id="github-check-code">—</dd><dt>HTTP</dt><dd id="github-check-http">—</dd><dt data-i18n="tools_github_identity">GitHub identity</dt><dd id="github-identity-detail">—</dd><dt data-i18n="last_verified">Last checked</dt><dd id="github-checked-at">—</dd></dl></details>
230
246
  <details class="tool-details"><summary data-i18n="tools_more_actions">More actions</summary><div class="section-actions"><button id="github-logout" type="button" data-i18n="tools_logout">Sign out of CCDX</button></div></details>
@@ -1,9 +1,13 @@
1
1
  (() => {
2
2
  const translations = {
3
+ gemini_route_waiting: ["Waiting for the client to load CCDX models", "等待客户端加载 CCDX 模型"],
4
+ gemini_route_observed: ["Client connected to CCDX", "客户端已接入 CCDX"],
5
+ gemini_models_saved: ["Model selection saved. Reopen Gemini to reload the model list.", "模型选择已保存。重新打开 Gemini 以加载模型列表。"],
6
+ gemini_no_models: ["No Copilot models are available. Enable Antigravity and check GitHub access.", "暂无 Copilot 模型。请启用 Antigravity 并检查 GitHub 授权。"],
3
7
  gemini_version: ["Version", "版本"],
4
8
  gemini_enabled: ["Copilot integration is on", "Copilot 接入已启用"], gemini_disabled: ["Copilot integration is off", "Copilot 接入未启用"],
5
- gemini_scope: ["Antigravity summaries, searches and image generation use Copilot. Ordinary Gemini chat keeps Google.", "Antigravity 的摘要、搜索和图像生成使用 Copilot;Gemini 普通聊天保留 Google。"],
6
- gemini_enable: ["Enable Antigravity", "启用 Antigravity"], gemini_disable: ["Pause Copilot", "停用 Copilot"], gemini_open: ["Open Gemini", "打开 Gemini"],
9
+ gemini_scope: ["Antigravity models, summaries, searches and image generation use Copilot. Ordinary Gemini chat keeps Google.", "Antigravity 的模型、摘要、搜索和图像生成使用 Copilot;Gemini 普通聊天保留 Google。"],
10
+ gemini_enable: ["Enable Antigravity", "启用 Antigravity"], gemini_disable: ["Pause Copilot", "停用 Copilot"], gemini_open: ["Open Antigravity", "打开 Antigravity"],
7
11
  gemini_reopen: ["Quit Gemini, then open it here. Active apps are never restarted automatically.", "请先退出 Gemini,再从这里打开。CCDX 不会自动重启正在运行的应用。"],
8
12
  gemini_opened: ["Gemini opened. Route adoption awaits an Antigravity request.", "已打开 Gemini,等待 Antigravity 请求确认接入。"],
9
13
  gemini_starting: ["Gemini is starting", "Gemini 正在启动"],
@@ -481,7 +485,7 @@
481
485
  "flow_app_codex_cli": ["Codex CLI", "Codex CLI"],
482
486
  "flow_app_claude_app": ["Claude App", "Claude App"],
483
487
  "flow_app_claude_code": ["Claude Code", "Claude Code"],
484
- "flow_app_gemini_app": ["Gemini · Antigravity", "Gemini · Antigravity"],
488
+ "flow_app_gemini_app": ["Antigravity", "Antigravity"],
485
489
  "flow_app_claude": ["Claude (app unspecified)", "Claude(未区分应用)"],
486
490
  "flow_app_api": ["Unidentified app", "未识别应用"],
487
491
  "flow_source_unknown": ["Source unknown", "来源未知"],
@@ -75,7 +75,7 @@
75
75
  }
76
76
  if (data.gemini || globalThis.ccdxGeminiStatus) {
77
77
  const gemini=data.gemini || globalThis.ccdxGeminiStatus;
78
- clients.append(tableRow(["Gemini · Antigravity",gemini.enabled?"Google + Copilot":"Google",gemini.enabled?"configured":"access_paused",gemini.activity?.active>0?"active":gemini.route_observed?"observed":"unknown","—"],{labels:[2,3]}));
78
+ clients.append(tableRow(["Antigravity",gemini.enabled?"Google + Copilot":"Google",gemini.enabled?"configured":"access_paused",gemini.activity?.active>0?"active":gemini.route_observed?"observed":"unknown","—"],{labels:[2,3]}));
79
79
  }
80
80
  if (element("claude-client-state")) element("claude-client-state").hidden = Boolean(claudeClients?.children.length);
81
81
  text("source-summary", "count_providers", { count: providers.length });
@@ -27,7 +27,7 @@ const statusResourceKey = () => ["codex", "claude", "models", "usage", "requests
27
27
  const refreshStatus = () => dashboardRefresh.refresh(statusResourceKey(), { force: true });
28
28
  const refresh = refreshStatus;
29
29
  globalThis.addEventListener?.("ccdx-gemini-state", () => {
30
- const auth=dashboardRefresh.state("auth").value;if(auth)renderProviders({...auth,gemini:globalThis.ccdxGeminiStatus});
30
+ const auth=dashboardRefresh.state("auth").value;if(auth){renderProviders({...auth,gemini:globalThis.ccdxGeminiStatus});syncProviderDetails();}
31
31
  });
32
32
 
33
33
  function animateLogo() {
@@ -179,7 +179,7 @@ export async function handleDashboardApi(req, res, pathname, {
179
179
  if (req.method === "POST" && (!sameOrigin(req) || !/^application\/json(?:\s*;|$)/i.test(req.headers["content-type"] || ""))) { sendJson(res, 403, { error: "Gemini setup requires same-origin JSON" });return; }
180
180
  const abort = createRequestAbort(req, res);abort.setTimeout(5000, "request_body_timeout");
181
181
  try {
182
- const input = req.method === "POST" ? await readJsonBody(req, { maxBodyBytes: 8192, maxDecodedBodyBytes: 8192, signal: abort.signal }) : {};
182
+ const input = req.method === "POST" ? await readJsonBody(req, { maxBodyBytes: 8192, maxDecodedBodyBytes: 8192, signal: abort.signal }) : new URL(req.url, "http://localhost").searchParams.get("scope")==="summary"?{action:"summary"}:{};
183
183
  abort.clearTimeout();sendJson(res, 200, await geminiFn(input, `http://${req.headers.host}`));
184
184
  } catch (error) { sendJson(res, error.statusCode || 400, { error: error.message }); }
185
185
  finally { abort.cleanup(); }return;
@@ -1,8 +1,8 @@
1
1
  import { terminalCell } from "./terminal-text.mjs";
2
2
 
3
3
  const integer = value => Number.isSafeInteger(value) && value >= 0;
4
- const appIds = { codex_app: "codex", codex_cli: "codex", codex: "codex", claude_app: "claude_app", claude_code: "claude_code", gemini_app: "gemini" };
5
- export const TERMINAL_CLIENT_NAMES = Object.freeze({ codex: "Codex", claude_app: "Claude App", claude_code: "Claude Code", gemini: "Gemini · Antigravity" });
4
+ const appIds = { codex_app: "codex", codex_cli: "codex", codex: "codex", claude_app: "claude_app", claude_code: "claude_code", gemini_app: "antigravity" };
5
+ export const TERMINAL_CLIENT_NAMES = Object.freeze({ codex: "Codex", claude_app: "Claude App", claude_code: "Claude Code", gemini: "Antigravity", antigravity: "Antigravity" });
6
6
  const labels = { configured: "Configured", paused: "Paused", disabled: "Disabled", not_configured: "Not configured", not_installed: "Not installed",
7
7
  preserved: "Unchanged", partially_preserved: "Partly unchanged", manual_sync: "Manual sync", default_unavailable: "Default unavailable", configuration_unavailable: "Unreadable", unavailable: "Unavailable" };
8
8
  export function terminalUptime(milliseconds) {
@@ -37,7 +37,7 @@ export function projectTerminalState(data = {}) {
37
37
  ...[["app", "claude_app"], ["code", "claude_code"]].map(([key, id]) => ({ id, setup: data.providers?.m365?.claude?.clients?.[key] })),
38
38
  ]).map(client => ({ id: client.id, name: TERMINAL_CLIENT_NAMES[client.id] || terminalCell(client.name || client.id),
39
39
  setup: clientSetup(client.id === "codex" && !connection?.managed && !client.setup && data.client_integrations?.codex?.setup ? { ...client, setup: data.client_integrations.codex.setup } : client), active: running.length || active === 0 ? byApp.get(client.id) || 0 : null, observed_at: client.observed_at || null }));
40
- if(data.gemini||byApp.has("gemini"))clients.push({id:"gemini",name:TERMINAL_CLIENT_NAMES.gemini,setup:data.gemini?.enabled?"Configured":"Paused",active:byApp.get("gemini")||0,observed_at:null});
40
+ if(data.gemini||byApp.has("antigravity"))clients.push({id:"antigravity",name:TERMINAL_CLIENT_NAMES.antigravity,setup:data.gemini?.enabled?"Configured":"Paused",active:byApp.get("antigravity")||0,observed_at:null});
41
41
  if (integer(active) && active > running.length) unidentified += active - running.length;
42
42
  if (unidentified) clients.push({ id: "other", name: "Other clients", setup: "Not identified", active: unidentified });
43
43
  const sources = connection?.providers?.filter(item => item.enabled && !(item.id === "m365" && data.providers?.m365?.enabled === false)).map(item => ({ id: item.id, name: terminalCell(item.name || item.id) }))