Repository navigation
Releases
Releases · Vikrant-Aleph/dsh-antigravity-gateway
v0.3.0
Added
- Client impersonation layer for private endpoint calls: the exact CLI header set and order (
Host,User-Agent,Content-Length,Authorization,Content-Type,Accept-Encoding: gzip), HTTP/1.1 with fixed-length bodies, and no browser-shaped defaults. The optionalwreq-jsdependency (tlsFingerprint, default on, automatic Node fallback when missing or unusable) delegates the TLS ClientHello to Rust + BoringSSL with the captured Go profile; measuredJA4_a/JA4_bmatch the official capture whileJA3/JA4_cstill differ, as documented in TECHNICAL §2.4.
Changed
- Private POSTs now use undici's low-level
requestwriter instead offetch, soaccept: */*,accept-language: *, andsec-fetch-mode: corsno longer ride along with the CLI header set (the Node fallback still framesHost,Connection: keep-alive, andContent-Lengthitself). - Pinned the private-call CLI identity to agy 1.5.19 (
cl=1031513713, the 2026-11-29 consumer capture) instead of the stale 1.5.8 pair (cl=1020628950);buildCliUserAgentstill drops the change list for any other version, so an unpaired "new version + old build number" combination is never sent. The catalog impact on this account is unverified, and 1.5.20 is not adopted because the official updater manifest carries no change list. - The wreq transport runs with
timeout: 0so the total-budget behaviour is identical on both transports: an over-budget stream keeps its delivered output and finishes normally instead of surfacing a transport error, and aborting a stream cancels the body read promptly. - Pinned
wreq-jsto~3.3.0because the TLS emulation option names are coupled to that minor; a floating minor could silently ignore an option and weaken the fingerprint. wreq-jsis declared inoptionalDependencies;dependenciesremainsundicionly, and the TLS fingerprint layer degrades to Node with a single logged notice.
v0.2.2
Fixed
- Restored Node 20 and 22 support:
npm run test:onlynow uses the runner's own discovery instead of a shell-expanded glob (Node 20 does not expand it), and every bounded wait uses a referenced timer (createDeadline) instead ofAbortSignal.timeout, whose unref'd timer could leave a caller reported as never settling. Both affected the CI matrix; 0.2.1 is superseded.
v0.2.1
Added
- Settings Account tab interactive Auto-switch on quota exhaustion toggle switch (
role="switch", backed by/api/antigravity-gateway-account/auto-switchRPC), defaulting tofalsewith an inline risk warning that automatic account rotation may risk account bans, persisting the preference atomically topreferences.json, and updatingAntigravityGatewayAdapterfailover behavior immediately without restarting DSH.
Changed
- Changed
autoSwitchAccountdefault fromtruetofalseacrossConfig,AccountService,AntigravityGatewayAdapter, andAccountPanel(with an inline suspension/ban risk warning). - Updated
README.md/README.us.mdfeature summary table (removed concrete model names from the capability column and renamed the right column to Summary / 简介) and added npm online installation and DSH Agentplugin_managerinstallation instructions. - A whole attempt now honors
requestTimeoutMsfor the streaming body too: when the budget expires the answer keeps what was already delivered and finishes asmax-tokens, while an attempt with no output still surfacesTIMEOUT. - Cancelling the request while its error body is being read now ends as
ABORTEDinstead of being reclassified as the provider's 401/429 error. - The opt-in
dumpRequestsTodiagnostic is capped at 8 MiB, written owner-only, and warns once at startup that it contains conversation content. modelsdiscovery bounds the credential wait with the same budget as the probes, so a cold token refresh degrades to a cached report instead of overrunning the client timeout.
Fixed
- The composer quota chip and settings quota view now always belong to the current account: a per-account epoch drops outdated responses (slow switch, logout, or overlapping forced refreshes), a response for a different active account is not shown, and switching or signing out clears the old account's numbers immediately. The Models tab no longer writes its own copy of the report.
- The quota chip no longer borrows a
5hbucket that belongs to another model family (or a lone unlabelled pool): it reads strictly the matching family's bucket and shows5h | --otherwise, matching the documented contract. - Sign-out and credential writes no longer report success when the host credential store and the file mirror disagree: a surviving host record restores the mirror and surfaces an unconfirmed sign-out, a failed host write drops the stale record so the mirror stays authoritative, and mirror migration only fills an empty slot. A login cancelled after its callback arrived can no longer persist credentials or clear a newer sign-in's pending state.
- Failover honours the auto-switch preference at decision time (turning it off mid-stream stops rotation) and never overrides a concurrent manual switch when the CAS is rejected.
- Auto-switch preference write failures are reported instead of silently ignored: disabling keeps the safe runtime value but reports that it was not persisted, and enabling is neither applied nor reported.
- SSE reader failures are classified as
TRANSPORTinstead of a false idle timeout,[DONE]ends the stream, OAuth token/userinfo bodies are byte- and time-bounded, and an unloaded transport refuses new work instead of reopening its dispatcher pool. logMaxFiles: 1keeps a single readable log file instead of writing an untracked rotated sibling, and unserializable diagnostic values no longer break logging./agwcommands re-evaluate the loopback access policy on every invocation, matching the account RPC after a late WebServer mount.- Composer quota indicator (
selectCompactQuota/selectQuotaForModel) now strictly reads the model pool's5hbucket without takingMath.minagainst lower per-model/weekly limits, and renders5h | XX%(or5h | --) consistently instead of substituting weekly orquota | XX%values. - Aligned
ModelCatalogmulti-endpoint probe budget (DEFAULT_PROBE_TIMEOUT_MS = 6_000,DEFAULT_PROBE_TOTAL_BUDGET_MS = 14_000) strictly below the SettingsModelsPanelRPC safety timeout (MODELS_RPC_TIMEOUT_MS = 25_000) so dual-endpoint stalls degrade cleanly to cached/snapshot reports instead of prematurely timing out on the client; added parallel live discovery (probeAvailableModels,getAccountTier,probeQuotaSummary), client state hydration (sharedQuotaState.status/report),loadingModelsplaceholder card, and transient error cache retention.
v0.2.0
Fixed
- Multi-account deduplication and cache isolation when multiple consumer Google accounts share the
aicode-consumersproject ID: account identity and cache keys now prioritize normalized email (withid_tokenJWT email extraction fallback when/userinfois unavailable), skip shared project IDs inderiveAccountId, and never merge distinct accounts on shared project IDs. - Clearing
sharedQuotaStateinclient.jsupon full logout orAUTHerrors so the composer quota indicator immediately reverts to5h | --without displaying stale account/quota details. - Per-account refresh generation isolation (
accountGenerations) inAuthManagerso switching accounts does not abort an unrelated concurrent token refresh. - Hardened lifecycle disposal, SSE stream abort handling (
iterateSse), catalog concurrency/ordering, async request-dump writes, and atomic file persistence (fs-atomic.ts).
Changed
- Encoded the public Antigravity desktop OAuth client identifier and secret in
src/protocol/constants.tsusing XOR-masked byte arrays decoded at runtime (avoiding plaintext and Base64 Push Protection triggers, with optional pairedANTIGRAVITY_OAUTH_CLIENT_*/ANTIGRAVITY_CLIENT_*environment overrides insrc/core/oauth.ts), added OAuth client-secret redaction insrc/core/logger.ts, and added automated plaintext/Base64 leak-prevention tests (158 tests across 18 suites). - Refactored internal codebase into a four-layer unidirectional architecture (
shared←protocol←core←dsh←index), guarded by AST dependency tests,client.js@ts-check+ contract tests, and expanded offline verification (158 tests across 18 suites). - Settings Account tab visual hierarchy (
agw-panel-header, active account spotlight card with avatar & metadata grid, styled account roster, and clean footer notes). - Composer quota indicator now falls back to
quota | XX%when no5hbucket matches and supports closing the hover/focus popover withEscape.
Added
- Settings Models tab quota visualization: clear hierarchical cards (
agw-panel-header, quota cards with bold5h/weeklylabels, prominent percentages, full-width 5px progress bars, and reset countdown + local time; streamlined available model rows showing model display name, status, and efforts without redundant model ID, duplicate quota, or verbose description text, plus collapsible unavailable models). - Chat composer compact 5-hour quota label (
5h | XX%) mounted viaconversation.input.rightimmediately to the left of the model selector when a model owned by this plugin is selected — borderless, matching the model trigger's UI font and13px/28pxalignment at semibold (600) weight, with a body-portaled hover card showing account info and the two quota pool groups (5h/weeklyprogress bars and reset countdowns, without per-model duplication). - Multi-account management (
CredentialVaultv2 with automatic backward-compatible single-account v1 persistence and migration): add/import multiple Google accounts, view account list, switch active account, and remove individual accounts from Settings → Account or/agw accounts·/agw switch·/agw logout [all]. - Per-account isolated memory and disk catalog caches (
catalog-cache.jsonv2) and automatic quota-exhaustion failover (autoSwitchAccount: trueby default): on HTTP429, in-streamRESOURCE_EXHAUSTED, or pre-flight known0%quota, seamlessly switches to an eligible backup account while preserving the user's selected model and reasoning effort.