mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add standalone Web monitor mode and full Antigravity CLI 1.5.9 telemetry support
- Add zero-SDK standalone HTTP server (`standalone.mjs` / `standalone-server.mjs`) with responsive centered Web shell, `127.0.0.1` default loopback guard, mandatory `--token` enforcement on non-loopback binds (`HttpOnly; SameSite=Strict` cookie + `Bearer` auth), and optional background auto-hosting via `standalonePort` / `USAGE_MONITOR_STANDALONE_PORT`. - Extend multi-root data discovery across `~/.gemini/antigravity` and `~/.gemini/antigravity-cli`, plus `daemon/hub_*.json` and `/proc` + `ss` Language Server endpoint discovery on minimal headless Linux hosts without `lsof`. - Add read-only `node:sqlite` + lightweight protobuf wire reader (`cli-sqlite-reader.mjs`) to recover CLI session titles (`annotations/*.pbtxt` & `conversation_summaries.db`), nanosecond request duration/TPS, native TTFT, thinking/response token split, 10-channel context breakdown, and `Antigravity CLI` source attribution. - Add regression tests (124 passing) and bilingual CLI / SSH tunnel / `--token` documentation in `README.zh-CN.md` and `README.md`. Closes #18
This commit is contained in:
@@ -121,6 +121,18 @@
|
||||
--space-5: 12px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html[data-standalone="true"] {
|
||||
color-scheme: dark;
|
||||
--background: hsl(222 18% 10%);
|
||||
--card: hsl(222 16% 13%);
|
||||
--border: hsl(220 14% 21%);
|
||||
--foreground: hsl(214 24% 92%);
|
||||
--muted-foreground: hsl(215 14% 63%);
|
||||
--primary: hsl(217 86% 61%);
|
||||
}
|
||||
}
|
||||
|
||||
/* --- src/styles/base.css --- */
|
||||
/*
|
||||
* Base reset, viewport-locked shell (preventing ultra-long px scroll pages),
|
||||
@@ -186,6 +198,19 @@ input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
html[data-standalone="true"] .app-shell {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@media (min-width: 980px) {
|
||||
html[data-standalone="true"] .app-shell {
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-left: 1px solid var(--border-hairline);
|
||||
border-right: 1px solid var(--border-hairline);
|
||||
}
|
||||
}
|
||||
|
||||
.top-deck {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user