Commit Graph
39 Commits
Author SHA1 Message Date
fish 743bdfa24d feat(panel): add local CloudCode proxy sync and independent Main/Subagent-Swarm context window toggles (#36) 2026-11-22 21:19:25 +09:00
fish 6da6c75390 feat(panel): refine quota reservation estimator, tier 5x/20x badge, conditional argon_weekly slot, and chart markers 2026-11-22 20:59:02 +09:00
fish 4d6d676e56 feat(panel): add experimental quota reservation estimator, violet bar indicator, and clipboard log export 2026-11-22 18:34:58 +09:00
fish 95a3c0c355 feat(panel): upgrade topbar quota ring indicators, unify structure previews, and polish quota panel 2026-11-22 17:39:00 +09:00
fish 97ef8b5ea5 feat(panel): default-lock topbar capsule and hover context to main agent with toggle (#35) 2026-11-22 17:09:00 +09:00
fish 1b61ae0258 feat(panel): gate step search/filter toolbar behind default-off setting in Step Columns 2026-11-22 12:56:35 +09:00
fish eb8424d899 feat(panel): upgrade tabular exports to styled multi-sheet localized xlsx workbooks 2026-11-22 12:17:20 +09:00
fish a98fda8b44 feat(panel): add formula-safe CSV/Markdown export, compact vertical action menus, and local file export with reveal toast 2026-11-22 11:54:20 +09:00
fish 6da4d3479c feat(panel): add live step search, danger-tier diagnostic chips, and click-to-inspect step drawer 2026-11-22 11:44:56 +09:00
fish 806d824b82 feat(panel): add project/workspace cost attribution, Projects ranking tab, and session project tags 2026-11-22 11:43:05 +09:00
fish 7df9108692 fix(panel): allocate isolated UUIDs in session full-move mode to prevent cross-client mirror deletion 2026-11-22 03:24:10 +09:00
fish 0769a88796 feat(panel): add opt-in cross-client session migration for CLI, Desktop App, and Legacy IDE 2026-11-21 23:19:15 +09:00
fish 3eb9e0e2a5 feat(cli): upgrade statusLine with Braille progress bars, instant waiting sync, /statusline flags, and CLI-gated settings 2026-11-21 21:44:32 +09:00
fish 71fc7d5279 feat(panel): add timing breakdown hover tooltip on TTFT and duration cells 2026-11-21 16:02:43 +09:00
fish 328e8cd74e feat(panel): upgrade consumption rankings, pointer-following breakdown popovers, full session search, sortable steps, and settings backup 2026-11-21 13:45:29 +09:00
fish 6411e49ac4 feat(panel): unify token breakdown order and flatten tooltip cards 2026-11-21 00:41:53 +09:00
fish 55320df9b7 feat(panel): graduate Modern UI as default, default language to system, and fix 5h quota boundary 2026-11-20 23:29:56 +09:00
fish 481f383763 feat(panel): polish compaction row popover, pill selects, steps header, scrollbar, and chart tooltips
# Conflicts:
#	sidecars/panel/index.html
2026-11-20 16:35:18 +09:00
fish 4a4e483209 feat(panel): add step anomaly diagnostics, >=100 tok/s integer speed formatting, and capsule alignment fix 2026-11-19 22:28:39 +09:00
fish 367ca0cd6d feat(panel): add experimental modern UI, sliding switchers, cycle range, and fluid animations 2026-11-19 15:05:27 +09:00
fish 70629dcd74 feat(panel): scale consumption bars by share percentage and unify 20-color deterministic model palette
- Scale Top Models and Client Sources horizontal bars by actual share percentage instead of always filling 100%, keeping Overview at 100%
- Add zero-hardcode deterministic 20-stop perceptual color ring (FNV-1a + Murmur3 with natural-slot reservation) so identical models receive consistent distinct colors across machines and sections
- Aggregate per-model breakdowns across Client Sources, Monthly Breakdown, and active Usage Trend buckets, folding <1.5% long-tail models into neutral 'Others (N)'
- Add per-model color dots after Top Models names, expand Usage Trend SVG height to 184px (and heatmap cell floor to 11px), and render unified model breakdown hover popovers across Usage Trend, Client Sources, and Monthly Breakdown
2026-11-19 10:43:31 +09:00
fish 2c211f67cc feat(panel): add Native Swarm mode compatibility and distinct worker telemetry
- Guard conversation_parents against forked Swarm Workers (subagentSpec or trajectoryType != 22) and selectively decode CORTEX_STEP_TYPE_SYSTEM_MESSAGE (step_type = 101) for child trajectories only
- Parse swarm, post_message, read_board, and swarm_wait tool calls, split zero-human-turn worker trajectories on initial brief / @mention / cron wakeup boundaries, and downgrade swarm_wait parked workers from RUNNING to IDLE ('waiting') while surfacing killed workers ('killed')
- Scan brain/<id>/.system_generated/swarm/members.json with mtime+size memoization, sort workers chronologically, assign independent swarm_worker ordinals (蜂k / Wk) separate from standard subagents (子k / Sk) and side questions (问k / Qk), and preserve 100% of worker token/USD billing
- Render Swarm counts, titles, scrollable sorted live worker lists, and one-shot auto-focus when navigating host routes to /c/<worker-uuid>, backed by E2E and binary SQLite tests
2026-11-19 09:36:05 +09:00
fish 352d6bdfef fix(panel): harden cross-environment 2.33.0+ launcher coverage with zero-subprocess fast path and on-demand UAC
- Add pure Node.js [MS-SHLLINK] raw-byte fast probe (`probeWindowsShortcutsFast`) so steady-state startups and 15-minute background rechecks run in <20ms with zero subprocesses, zero COM calls, and zero recursive folder traversal into Desktop subdirectories or unrelated Start Menu vendor folders
- Restrict Windows shortcut scanning to top-level Desktop / OneDrive Desktop / Taskbar / Startup `.lnk` files and `Programs\Antigravity*`, pre-filtering raw bytes before lazily instantiating `WScript.Shell` COM
- Patch exact O(1) user-space `HKCU\Software\Classes` launch keys (`antigravity` protocol, `Applications\Antigravity.exe`, `AntigravitySourceFile`) via `.NET` `Registry.CurrentUser` with `--remote-debugging-port=0` placed before `-- "%1"`, resolve `%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe` explicitly, and tolerate inaccessible folders without aborting
- Support All-Users read-only public shortcuts (`readOnlyPaths`) and elevated old host processes via user-consented `-Verb RunAs` on 1-click relaunch while preserving WMI `Win32_Process.Create` when already elevated and de-elevating via `Shell.Application` when the original host ran unelevated (preserving Explorer drag-and-drop)
- Generalize Linux `.desktop` `Exec=` patching for `env` prefixes and `Antigravity-*.AppImage`, add pure `node:fs` `/proc` executable discovery, gate launcher checks behind leader lease acquisition, and differentiate macOS / read-only shortcut notices honestly in `BridgeStatusNotice`
2026-11-19 09:36:05 +09:00
fish d665fb0c34 fix(panel): harden 2.33.0+ context window override injection and pending-restart status
- Inject backend pre-resolved MODEL_* fallback rules into syncHostContextWindows so
  context window overrides remain active even when window.__APP_CONFIG__.csrfToken is
  omitted, and extend request interception to cover StartCascade, URL inputs, Uint8Array
  JSON bodies, and application/connect+json 5-byte envelopes
- Trigger shortcut/launcher provisioning on modelContextWindows updates and surface the
  context-mode BridgeStatusNotice banner in App.js even when windowMountMode is 'sidebar'
- Show explicit '待重启生效' / 'Pending Restart' meta badge in SettingsOtherTab model
  dropdown and reveal ctxBridgeNotice immediately upon unlocking when CDP is inactive

Closes #27
2026-11-18 22:08:39 +09:00
fish 955dfeebb7 fix(panel): auto-provision Desktop shortcuts and add out-of-job 1-click host relaunch for 2.33.0+
- Add cross-platform desktop launcher manager (backend/desktop-launcher-config.mjs):
  automatically appends --remote-debugging-port=0 to user Desktop (including OneDrive),
  Start Menu, Taskbar pinned, and Startup Antigravity.lnk shortcuts plus existing
  HKCU Run entries on Windows and XDG .desktop launchers on Linux, with clean rollback
  when switching back to Sidebar Only mode
- Remove ineffective Desktop argv.json provisioning (Electron Desktop 2.33.0 does not
  read argv.json) while retaining ~/.antigravity-ide/argv.json for Antigravity IDE
- Add POST /api/bridge/relaunch (with hot-reload POST /api/settings fallback) using
  Shell.Application (-Sta + UTF-8 BOM .ps1) on Windows to break out of the host Job
  Object, exit tray instances, clean up stale DevToolsActivePort files, sanitize host
  environment variables, and relaunch with --remote-debugging-port=0 (plus open -a /
  nohup support on macOS and Linux, and live running-process path discovery across drives)
- Surface dismissible BridgeStatusNotice banner directly at the top of App.js alongside
  Settings tabs so users can activate topbar/composer mounting in one click

Closes #26
2026-11-18 21:42:21 +09:00
fish 935eb001ca fix(panel): auto-provision Desktop argv.json and surface CDP bridge diagnostics for 2.33.0+ (Refs #26) 2026-11-18 20:11:31 +09:00
fish a954a98080 refactor(panel): extract sqlite/wire primitives, localize charts & structured status, and unify overlay/mock-dom (P2) 2026-11-18 18:46:53 +09:00
fish 1459240751 refactor(panel): complete shared single-source rules, isolate per-module bundle scopes, and purify scoped selector 2026-11-18 17:05:47 +09:00
fish 67e2f047dd perf(panel): isolate host main.mjs startup, fix standalone CLI args, and close P0 audit bugs 2026-11-18 15:01:43 +09:00
fishandorbitoo dba3473494 feat(panel): add hybrid SQLite+WAL reader, side-question dedup, and cache throttling
- Read local conversation_summaries.db and <id>.db (+ .db-wal composite signatures) first while falling back to RPC when local DBs are absent
- Deduplicate cloned parent steps and gen_metadata across forks and Side Questions, render zh/en Side Question badges, and protect mainline context watermarks
- Throttle trajectory_usage_cache.json writes to 30s during RUNNING sessions and flush immediately on IDLE or exit
- Add phased pricing for gemini-4-argon-b and gemini-4-argon-trial, and suppress false upstream update prompts on custom GitHub forks

Co-authored-by: orbitoo <elbertoo001@gmail.com>
2026-11-17 17:37:19 +09:00
fish 4670dd0a0e fix(panel): replace native width input, fix select menu open reflow, and gate context window settings behind risk consent
- Replace native <input type="number"> in popover width settings with CustomNumberInput stepper and hide native number spinbuttons globally
- Eliminate single/multi-select option reflow on open by removing scale(0.985) GPU layer teardown in anim-popover-in, floating .scrollbar-rail without flex width squeeze, and reconciling options before unhiding .select-menu
- Gate Model Context Settings behind a persistent risk consent mask (contextWindowRiskAccepted, default false and re-locked on factory reset)
2026-11-16 18:10:31 +09:00
fish 3b36ade911 feat(panel): add worker hot-reload, sticky bridge lease, custom token combos, trimmed model IDs, and adaptive popover width
- Isolate SidecarApp /api/* backend runtime inside a hot-swappable Worker thread (sidecar-worker.mjs) with 3s disk-drift detection and queued request handoff so live plugin updates never drop the host-assigned SidecarApp port
- Persist and reuse sticky loopback bridge port/token leases across bridge-daemon and worker reloads, pre-bind the bridge server on boot, allow /api/cache/rebuild on the bridge, and self-heal poisoned CDP fallback states back to HTTP
- Add billing-aligned In / Out / Cache (tokens_io_cache) preset with per-segment USD hover breakdown and custom format DSL (tokens_custom + stepTokenComboFormat, e.g. context:new:cache, in:out:cache)
- Add 3-way model name format (short / upstream / upstream_compact) stripping gemini-, claude-, and gpt- prefixes while protecting compaction suffixes from ellipsis truncation
- Add adaptive content-fit popover width (auto up to viewport bounds on wide step tables) alongside custom fixed width (440-1080 px)
2026-11-16 16:55:56 +09:00
fish cd841b55cf 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`
2026-11-16 14:00:05 +09:00
fish 8968e03adb perf(panel): add incremental step transport, memoized aggregation, atomic cache writes, and hidden-view gating
- Project display-only step fields in /api/telemetry, skip unchanged step payloads via stepRevision, coalesce identical client refreshes, and share in-flight backend trajectory scans across same-account requests
- Reuse normalized step values and memoize up to two range aggregations in usage-aggregator gated by step timestamps, pricing revision, model overrides, timezone, and source identity; cache per-trajectory model facts and single-agent step preparation via WeakMap/WeakRef
- Persist trajectory checkpoints atomically in trajectory-cache-file.mjs via chunked writevSync + renameSync while reusing serialized step byte slices for unchanged conversations
- Render step turn-rail lines/dots via CSS pseudo-elements, allocate speed-reason nodes on demand, short-circuit unchanged table reconciliations, and cache per-series LOESS publication fits in SessionStepCharts
- Gate DOM updates and timers across closed overlay panels, hover popups, inactive settings tabs, and unchanged ConsumptionView payloads
- Distinguish canceled steps (CORTEX_STEP_STATUS_CANCELED) and untimed compaction steps from generic incomplete timing in speed-metrics and bilingual i18n labels
2026-11-15 23:33:08 +09:00
fish 73f637a3e6 feat(panel): add 3rd-level structure menu, real-UI live previews, drag reorder, and unified capsule tones 2026-11-15 20:01:57 +09:00
fish 6517ee434e fix(panel): add semantic speed/cache color tiers and clean up overview metric subtexts 2026-11-15 18:53:43 +09:00
fishandSwei 228031e335 feat(panel): add conversation turn rail, prompt preview, and decoupled step toggles
- Track user input turn boundaries and prompt previews in extractModelSteps while stripping compaction summary headers
- Align interleaved main and subagent steps onto unified rootTurnIndex in telemetry-builder and scope lazy cache refresh to the active session family
- Render dynamic left-edge turn rail and viewport-clamped prompt tooltip in StepsDetailView across arbitrary custom column orders
- Decouple [主]/[子] agent badges from step index and add independent switches for Turn Rail and Agent Badge under Preferences -> Structure

Co-authored-by: Swei <sweilo@qq.com>
2026-11-15 16:55:26 +09:00
fish ff2470481f feat(panel): Antigravity IDE & composer mount, modular preferences, session charts, and per-model context windows (v1.5.0) 2026-11-15 15:25:45 +09:00
fish 18c608ae63 feat(panel): modularize 3-tab preferences, add model context windows, and optimize telemetry
- Refactor Preferences into decoupled General, Structure, and Other tabs with unified settings schema, factory reset, and trajectory cache rebuild endpoints
- Extract standalone widget, metric, and step-table column registries to customize topbar/composer slots, hover popup modules, live overview layout, and step detail columns
- Add bilingual zh-CN/en-US i18n dictionaries, theme accent presets, and font scale controls across Shadow DOM overlay and sidebar views
- Support per-model host-advertised context window rules across App and IDE transports
- Preserve CLEARED step generation timings, memoize per-poll model resolution, optimize LOESS sorted-x fitting, and update bilingual READMEs and test suites
2026-11-15 01:18:29 +09:00