feat(panel): add inline CLI statusLine capsule, step speed color toggle, and refined defaults

- Auto-provision native Antigravity CLI `statusLine` (`stack_with_default: false`) in `~/.gemini/antigravity-cli/settings.json` while strictly preserving custom third-party `statusLine.command` scripts, using zero-double-quote Windows commands compatible with Go `syscall.EscapeArg` under `cmd /c`
- Add `cli-statusline.mjs` and `cli-statusline-config.mjs` to render a single-line transparent 24-bit ANSI footer (`? for shortcuts` left, live multi-session & 1..5 capsule metrics centered, deduplicated `mode · model · effort` right) with responsive narrow-terminal fallbacks and `stdin` quota fallback
- Persist `cli-status-snapshot.json` during telemetry builds and self-heal sidecar restarts inside `executeTelemetryAction` error paths when `computeRuntimeCodeVersion()` advances
- Add `enableCliStatusLine` and `showStepSpeedColor` preferences in Settings -> Structure, rename the mount sub-tab/section label in `zh-CN` to `挂载胶囊`, set default `topbarCapsuleSlots` to `['tps', 'ttft', 'context']`, and default `showStepTurnRail` and `showStepSpeedColor` to `false`
- Add unit and end-to-end tests across `backend.test.mjs` and `window-bridge.test.mjs`, and update `README.md` / `README.zh-CN.md`
This commit is contained in:
fish
2026-11-16 14:00:05 +09:00
parent 76669d5cc7
commit cd841b55cf
23 changed files with 2478 additions and 125 deletions
+3 -1
View File
@@ -15,8 +15,9 @@ import {
isLocalHostRequest,
readLocalAsync,
} from './api-actions.mjs';
import { lsRuntimeEndpoint, setLsRuntimeEndpoint } from './config.mjs';
import { loadSettings, lsRuntimeEndpoint, setLsRuntimeEndpoint } from './config.mjs';
import { ensureLsEndpointDiscovered } from './ls-discovery.mjs';
import { ensureCliStatusLineConfigured } from './cli-statusline-config.mjs';
import { syncCloudCatalog } from './plugin-updater.mjs';
const MAX_JSON_BODY_BYTES = 1024 * 1024;
@@ -574,6 +575,7 @@ export function createStandaloneWebServer(options = {}) {
return getStatus();
}
if (!options.skipStartupDiscovery && lsRuntimeEndpoint.addr !== 'test.invalid') {
ensureCliStatusLineConfigured({ enabled: loadSettings().enableCliStatusLine !== false });
if (lsRuntimeEndpoint.baseUrl) {
syncCloudCatalog({ force: false }).catch(() => {});
} else {